diff options
author | 2015-04-30 14:18:54 -0700 | |
---|---|---|
committer | 2015-04-30 14:18:54 -0700 | |
commit | d309e7aa0efa2d5dd7e7b1af97026fcd3a047e98 (patch) | |
tree | 28290abc67fd60111bba896722a14dcb0611df84 /tools | |
parent | 3ffa126066542590dc7430514a1174e49191b875 (diff) |
This replaces the texture creation/caching functions on GrContext with a GrTextureProvider interface. The goal is to pass this narrowly focused object in places that currently take a GrContext but don't need and shouldn't use its other methods. It also has an extended private interface for interacting with non-texture resource types.
Review URL: https://codereview.chromium.org/1107973004
Diffstat (limited to 'tools')
-rw-r--r-- | tools/PictureRenderer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/PictureRenderer.cpp b/tools/PictureRenderer.cpp index aec153d953..559413f9b9 100644 --- a/tools/PictureRenderer.cpp +++ b/tools/PictureRenderer.cpp @@ -156,7 +156,7 @@ SkCanvas* PictureRenderer::setupCanvas(int width, int height) { desc.fWidth = width; desc.fHeight = height; desc.fSampleCnt = fSampleCount; - target.reset(fGrContext->createTexture(desc, false, NULL, 0)); + target.reset(fGrContext->textureProvider()->createTexture(desc, false, NULL, 0)); } uint32_t flags = fUseDFText ? SkSurfaceProps::kUseDistanceFieldFonts_Flag : 0; |