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

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

Issue 691523002: Separate out GrSurfaceConfig's fields from other structs used to create GrGL* GrSurface subclasses (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix indent Created 6 years, 2 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
« no previous file with comments | « no previous file | src/gpu/gl/GrGLRenderTarget.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/GrGLRenderTarget.h
diff --git a/src/gpu/gl/GrGLRenderTarget.h b/src/gpu/gl/GrGLRenderTarget.h
index de9f4c1aa08c15198a8c00e29c1b25be0fe76b74..116862bd0b388d48a33bbb6fe57c6f0a56741aba 100644
--- a/src/gpu/gl/GrGLRenderTarget.h
+++ b/src/gpu/gl/GrGLRenderTarget.h
@@ -24,28 +24,19 @@ public:
// Gr doesn't know how to resolve it.
enum { kUnresolvableFBOID = 0 };
- struct Desc {
+ struct IDDesc {
GrGLuint fRTFBOID;
GrGLuint fTexFBOID;
GrGLuint fMSColorRenderbufferID;
bool fIsWrapped;
- GrPixelConfig fConfig;
- int fSampleCnt;
- GrSurfaceOrigin fOrigin;
- bool fCheckAllocation;
};
// creates a GrGLRenderTarget associated with a texture
- GrGLRenderTarget(GrGpuGL* gpu,
- const Desc& desc,
- const GrGLIRect& viewport,
- GrGLTexID* texID,
- GrGLTexture* texture);
+ GrGLRenderTarget(GrGpuGL*, const IDDesc&, const GrGLIRect& viewport,
+ GrGLTexID*, GrGLTexture*);
// creates an independent GrGLRenderTarget
- GrGLRenderTarget(GrGpuGL* gpu,
- const Desc& desc,
- const GrGLIRect& viewport);
+ GrGLRenderTarget(GrGpuGL*, const GrSurfaceDesc&, const IDDesc&, const GrGLIRect& viewport);
virtual ~GrGLRenderTarget() { this->release(); }
@@ -99,7 +90,7 @@ private:
// non-NULL if this RT was created by Gr with an associated GrGLTexture.
SkAutoTUnref<GrGLTexID> fTexIDObj;
- void init(const Desc& desc, const GrGLIRect& viewport, GrGLTexID* texID);
+ void init(const GrSurfaceDesc&, const IDDesc&, const GrGLIRect& viewport, GrGLTexID*);
typedef GrRenderTarget INHERITED;
};
« no previous file with comments | « no previous file | src/gpu/gl/GrGLRenderTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698