diff options
author | Greg Daniel <egdaniel@google.com> | 2017-12-08 11:44:27 -0500 |
---|---|---|
committer | Greg Daniel <egdaniel@google.com> | 2017-12-11 09:39:16 -0500 |
commit | 660d6eca991f15de77c02a7e259ed709338a0972 (patch) | |
tree | d1b8b44a39f028c49394aa4dfd109a1a9dffb957 /libs/hwui/renderthread/EglManager.cpp | |
parent | 23627fbff5f13629e997a00b006a1ebdc423e735 (diff) |
Update GrContext creation calls to use sk_sp
Test: manual testing
Change-Id: I68d8706ffa7bc7c6622ea0b8c45d7297a131f6bf
Diffstat (limited to 'libs/hwui/renderthread/EglManager.cpp')
-rw-r--r-- | libs/hwui/renderthread/EglManager.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/hwui/renderthread/EglManager.cpp b/libs/hwui/renderthread/EglManager.cpp index 4df7cafa4792..848c6a81d2b7 100644 --- a/libs/hwui/renderthread/EglManager.cpp +++ b/libs/hwui/renderthread/EglManager.cpp @@ -141,8 +141,9 @@ void EglManager::initialize() { GrContextOptions options; options.fDisableDistanceFieldPaths = true; mRenderThread.cacheManager().configureContext(&options); - mRenderThread.setGrContext(GrContext::Create(GrBackend::kOpenGL_GrBackend, - (GrBackendContext)glInterface.get(), options)); + sk_sp<GrContext> grContext(GrContext::MakeGL(std::move(glInterface), options)); + LOG_ALWAYS_FATAL_IF(!grContext.get()); + mRenderThread.setGrContext(grContext); } } |