diff options
author | Greg Daniel <egdaniel@google.com> | 2017-07-25 10:05:01 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-07-25 14:33:03 +0000 |
commit | 02611d9afdd887ee443825ac88377f2eea093380 (patch) | |
tree | 3e35b4e4fde4b6f387f7bdb345b049c1ab76e182 /samplecode | |
parent | 10b6ad13f996d2f522bc057d17acea58e43a7f0b (diff) |
Add Make[backend] calls for creating GrContexts
Docs-Preview: https://skia.org/?cl=26369
Bug: skia:
Change-Id: I460ee63e466f85b05918479f068a2e5ca2d70550
Reviewed-on: https://skia-review.googlesource.com/26369
Commit-Queue: Greg Daniel <egdaniel@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'samplecode')
-rw-r--r-- | samplecode/SampleApp.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp index 1676fc3b13..c36e2e8604 100644 --- a/samplecode/SampleApp.cpp +++ b/samplecode/SampleApp.cpp @@ -276,8 +276,7 @@ public: } SkASSERT(nullptr == fCurContext); - fCurContext = GrContext::Create(kOpenGL_GrBackend, (GrBackendContext) fCurIntf, - backendOptions.fGrContextOptions); + fCurContext = GrContext::MakeGL(fCurIntf, backendOptions.fGrContextOptions).release(); if (nullptr == fCurContext || nullptr == fCurIntf) { // We need some context and interface to see results |