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

Unified Diff: src/gpu/GrTest.cpp

Issue 1262473004: Make GrGpu read/write pixels take GrSurface (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more Created 5 years, 5 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/GrTest.cpp
diff --git a/src/gpu/GrTest.cpp b/src/gpu/GrTest.cpp
index fd2908eb766e2a519d21d5a6cb866c960cdda9cd..9f066d29beaab265e03c6c782c5a9f3ead45cf1f 100644
--- a/src/gpu/GrTest.cpp
+++ b/src/gpu/GrTest.cpp
@@ -204,7 +204,7 @@ private:
void onDraw(const DrawArgs&, const GrNonInstancedVertices&) override {}
robertphillips 2015/07/30 12:57:17 target -> surface or remove ?
bsalomon 2015/07/30 14:23:14 Done.
- bool onReadPixels(GrRenderTarget* target,
+ bool onReadPixels(GrSurface* target,
int left, int top, int width, int height,
GrPixelConfig,
void* buffer,
@@ -212,10 +212,10 @@ private:
return false;
}
robertphillips 2015/07/30 12:57:17 texture -> surface or remove ?
bsalomon 2015/07/30 14:23:14 Done.
- bool onWriteTexturePixels(GrTexture* texture,
- int left, int top, int width, int height,
- GrPixelConfig config, const void* buffer,
- size_t rowBytes) override {
+ bool onWritePixels(GrSurface* texture,
+ int left, int top, int width, int height,
+ GrPixelConfig config, const void* buffer,
+ size_t rowBytes) override {
return false;
}
« src/gpu/GrGpu.h ('K') | « src/gpu/GrGpu.cpp ('k') | src/gpu/gl/GrGLGpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698