Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(550)

Unified Diff: src/gpu/GrGpuGL.h

Issue 5448063: Add support for GL_ANGLE_pack_reverse_row_order (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: add comment Created 13 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrGpu.h ('k') | src/gpu/GrGpuGL.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrGpuGL.h
===================================================================
--- src/gpu/GrGpuGL.h (revision 2773)
+++ src/gpu/GrGpuGL.h (working copy)
@@ -29,18 +29,18 @@
GrGLBinding glBinding() const { return fGLBinding; }
GrGLVersion glVersion() const { return fGLVersion; }
+ // GrGpu overrides
virtual GrPixelConfig preferredReadPixelsConfig(GrPixelConfig config)
- SK_OVERRIDE;
+ const SK_OVERRIDE;
virtual GrPixelConfig preferredWritePixelsConfig(GrPixelConfig config)
- SK_OVERRIDE;
-
+ const SK_OVERRIDE;
virtual bool readPixelsWillPayForYFlip(
GrRenderTarget* renderTarget,
int left, int top,
int width, int height,
GrPixelConfig config,
- size_t rowBytes) SK_OVERRIDE;
-
+ size_t rowBytes) const SK_OVERRIDE;
+ virtual bool fullReadPixelsIsFasterThanPartial() const SK_OVERRIDE;
protected:
GrGpuGL(const GrGLInterface* glInterface, GrGLBinding glBinding);
@@ -56,7 +56,8 @@
, fTextureSwizzleSupport(false)
, fUnpackRowLengthSupport(false)
, fUnpackFlipYSupport(false)
- , fPackRowLengthSupport(false) {
+ , fPackRowLengthSupport(false)
+ , fPackFlipYSupport(false) {
memset(fAASamples, 0, sizeof(fAASamples));
}
SkTArray<GrGLStencilBuffer::Format, true> fStencilFormats;
@@ -108,7 +109,10 @@
// Is there support for GL_PACK_ROW_LENGTH
bool fPackRowLengthSupport;
-
+
+ // Is there support for GL_PACK_REVERSE_ROW_ORDER
+ bool fPackFlipYSupport;
+
void print() const;
} fGLCaps;
« no previous file with comments | « src/gpu/GrGpu.h ('k') | src/gpu/GrGpuGL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b