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

Unified Diff: src/gpu/GrRenderTarget.cpp

Issue 638403003: Remove uses of GrAutoScratchTexture. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: comment change Created 6 years, 2 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/GrRenderTarget.cpp
diff --git a/src/gpu/GrRenderTarget.cpp b/src/gpu/GrRenderTarget.cpp
index b9763325d89b6363e67dfcc486099ea64fd98121..4f6d87735b770a352961d5588c0b4c2928659149 100644
--- a/src/gpu/GrRenderTarget.cpp
+++ b/src/gpu/GrRenderTarget.cpp
@@ -29,7 +29,7 @@ bool GrRenderTarget::readPixels(int left, int top, int width, int height,
pixelOpsFlags);
}
-void GrRenderTarget::writePixels(int left, int top, int width, int height,
+bool GrRenderTarget::writePixels(int left, int top, int width, int height,
GrPixelConfig config,
const void* buffer,
size_t rowBytes,
@@ -37,12 +37,12 @@ void GrRenderTarget::writePixels(int left, int top, int width, int height,
// go through context so that all necessary flushing occurs
GrContext* context = this->getContext();
if (NULL == context) {
- return;
+ return false;
}
- context->writeRenderTargetPixels(this,
- left, top, width, height,
- config, buffer, rowBytes,
- pixelOpsFlags);
+ return context->writeRenderTargetPixels(this,
+ left, top, width, height,
+ config, buffer, rowBytes,
+ pixelOpsFlags);
}
void GrRenderTarget::resolve() {
« src/gpu/GrContext.cpp ('K') | « src/gpu/GrLayerCache.cpp ('k') | src/gpu/GrSWMaskHelper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698