Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Unified Diff: src/gpu/GrContext.cpp

Issue 1139753002: Refactor GrBufferAllocPools to use resource cache (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Clean up Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/gpu/GrContext.cpp
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index e26c57f9f6553d651c4aa532361d6dc4ae02332d..6f5cb07c329d0f503fa49bfeb64021c8821656ab 100755
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -1428,7 +1428,7 @@ bool GrContext::writeSurfacePixels(GrSurface* surface,
desc.fHeight = height;
desc.fConfig = writeConfig;
SkAutoTUnref<GrTexture> texture(this->textureProvider()->refScratchTexture(desc,
- GrTextureProvider::kApprox_ScratchTexMatch));
+ GrTextureProvider::kApprox_ScratchMatch));
if (!texture) {
return false;
}
@@ -1573,13 +1573,13 @@ bool GrContext::readRenderTargetPixels(GrRenderTarget* target,
// match the passed rect. However, if we see many different size rectangles we will trash
// our texture cache and pay the cost of creating and destroying many textures. So, we only
// request an exact match when the caller is reading an entire RT.
- GrTextureProvider::ScratchTexMatch match = GrTextureProvider::kApprox_ScratchTexMatch;
+ GrTextureProvider::ScratchMatch match = GrTextureProvider::kApprox_ScratchMatch;
if (0 == left &&
0 == top &&
target->width() == width &&
target->height() == height &&
fGpu->fullReadPixelsIsFasterThanPartial()) {
- match = GrTextureProvider::kExact_ScratchTexMatch;
+ match = GrTextureProvider::kExact_ScratchMatch;
}
tempTexture.reset(this->textureProvider()->refScratchTexture(desc, match));
if (tempTexture) {

Powered by Google App Engine
This is Rietveld 408576698