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

Side by Side Diff: src/gpu/gl/GrGLRenderTarget.h

Issue 15643013: Force checking of all color, stencil and FBO allocations for SkSurface_Gpu. This fixes the software… (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Spread the SkToBool goodness. Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « include/gpu/GrTypes.h ('k') | src/gpu/gl/GrGpuGL.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 8
9 #ifndef GrGLRenderTarget_DEFINED 9 #ifndef GrGLRenderTarget_DEFINED
10 #define GrGLRenderTarget_DEFINED 10 #define GrGLRenderTarget_DEFINED
(...skipping 14 matching lines...) Expand all
25 enum { kUnresolvableFBOID = 0 }; 25 enum { kUnresolvableFBOID = 0 };
26 26
27 struct Desc { 27 struct Desc {
28 GrGLuint fRTFBOID; 28 GrGLuint fRTFBOID;
29 GrGLuint fTexFBOID; 29 GrGLuint fTexFBOID;
30 GrGLuint fMSColorRenderbufferID; 30 GrGLuint fMSColorRenderbufferID;
31 bool fIsWrapped; 31 bool fIsWrapped;
32 GrPixelConfig fConfig; 32 GrPixelConfig fConfig;
33 int fSampleCnt; 33 int fSampleCnt;
34 GrSurfaceOrigin fOrigin; 34 GrSurfaceOrigin fOrigin;
35 bool fCheckAllocation;
35 }; 36 };
36 37
37 // creates a GrGLRenderTarget associated with a texture 38 // creates a GrGLRenderTarget associated with a texture
38 GrGLRenderTarget(GrGpuGL* gpu, 39 GrGLRenderTarget(GrGpuGL* gpu,
39 const Desc& desc, 40 const Desc& desc,
40 const GrGLIRect& viewport, 41 const GrGLIRect& viewport,
41 GrGLTexID* texID, 42 GrGLTexID* texID,
42 GrGLTexture* texture); 43 GrGLTexture* texture);
43 44
44 // creates an independent GrGLRenderTarget 45 // creates an independent GrGLRenderTarget
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 98
98 // non-NULL if this RT was created by Gr with an associated GrGLTexture. 99 // non-NULL if this RT was created by Gr with an associated GrGLTexture.
99 GrGLTexID* fTexIDObj; 100 GrGLTexID* fTexIDObj;
100 101
101 void init(const Desc& desc, const GrGLIRect& viewport, GrGLTexID* texID); 102 void init(const Desc& desc, const GrGLIRect& viewport, GrGLTexID* texID);
102 103
103 typedef GrRenderTarget INHERITED; 104 typedef GrRenderTarget INHERITED;
104 }; 105 };
105 106
106 #endif 107 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrTypes.h ('k') | src/gpu/gl/GrGpuGL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698