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

Unified Diff: src/gpu/gl/GrGLRenderTarget.h

Issue 2225303002: Add flag for window rectangles to GrRenderTarget (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 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/gl/GrGLRenderTarget.h
diff --git a/src/gpu/gl/GrGLRenderTarget.h b/src/gpu/gl/GrGLRenderTarget.h
index edf35a1a5c7cee1f3f1e85318d11f258a13893e3..288a03caf1cac6c007a836e62755e8810b7ac5c6 100644
--- a/src/gpu/gl/GrGLRenderTarget.h
+++ b/src/gpu/gl/GrGLRenderTarget.h
@@ -23,11 +23,11 @@ public:
enum { kUnresolvableFBOID = 0 };
struct IDDesc {
- GrGLuint fRTFBOID;
- GrBackendObjectOwnership fRTFBOOwnership;
- GrGLuint fTexFBOID;
- GrGLuint fMSColorRenderbufferID;
- GrRenderTarget::SampleConfig fSampleConfig;
+ GrGLuint fRTFBOID;
+ GrBackendObjectOwnership fRTFBOOwnership;
+ GrGLuint fTexFBOID;
+ GrGLuint fMSColorRenderbufferID;
+ bool fIsMixedSampled;
};
static GrGLRenderTarget* CreateWrapped(GrGLGpu*,
@@ -83,6 +83,8 @@ private:
// Constructor for instances wrapping backend objects.
GrGLRenderTarget(GrGLGpu*, const GrSurfaceDesc&, const IDDesc&, GrGLStencilAttachment*);
+ static Flags ComputeFlags(const IDDesc&);
+
GrGLGpu* getGLGpu() const;
bool completeStencilAttachment() override;

Powered by Google App Engine
This is Rietveld 408576698