diff options
author | 2011-11-19 02:36:05 +0000 | |
---|---|---|
committer | 2011-11-19 02:36:05 +0000 | |
commit | a85449dac125b8985010df7c057e9e6201d55112 (patch) | |
tree | 2996d36dbfe836a9c0c9388be1f0e17c6dddc38c /src/gpu/GrGpu.h | |
parent | 484be2bafd26f624be879c582b07ca1859a080be (diff) |
Resubmit 2717 w/ fix workaround OS X GL bug.
git-svn-id: http://skia.googlecode.com/svn/trunk@2719 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrGpu.h')
-rw-r--r-- | src/gpu/GrGpu.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 @@ -195,6 +195,13 @@ public: } /** + * 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 * solution is to have the subclass do the flip using either the CPU or GPU. @@ -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. |