From a85449dac125b8985010df7c057e9e6201d55112 Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Sat, 19 Nov 2011 02:36:05 +0000 Subject: Resubmit 2717 w/ fix workaround OS X GL bug. git-svn-id: http://skia.googlecode.com/svn/trunk@2719 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/gpu/GrGpu.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/gpu/GrGpu.h') diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h index 9b39319f4f..6741aec513 100644 --- a/src/gpu/GrGpu.h +++ b/src/gpu/GrGpu.h @@ -194,6 +194,13 @@ public: return config; } + /** + * Same as above but applies to writeTexturePixels + */ + virtual GrPixelConfig preferredWritePixelsConfig(GrPixelConfig config) { + return config; + } + /** * OpenGL's readPixels returns the result bottom-to-top while the skia * API is top-to-bottom. Thus we have to do a y-axis flip. The obvious @@ -247,6 +254,7 @@ public: /** * Updates the pixels in a rectangle of a texture. + * * @param left left edge of the rectangle to write (inclusive) * @param top top edge of the rectangle to write (inclusive) * @param width width of rectangle to write in pixels. -- cgit v1.2.3