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

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

Issue 791493003: Skia: Track the fIsWrapped separately so that we delete correctly (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « no previous file | src/gpu/gl/GrGLRenderTarget.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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 virtual void onAbandon() SK_OVERRIDE; 68 virtual void onAbandon() SK_OVERRIDE;
69 virtual void onRelease() SK_OVERRIDE; 69 virtual void onRelease() SK_OVERRIDE;
70 70
71 // In protected because subclass GrGLTextureRenderTarget calls this version. 71 // In protected because subclass GrGLTextureRenderTarget calls this version.
72 virtual size_t onGpuMemorySize() const SK_OVERRIDE; 72 virtual size_t onGpuMemorySize() const SK_OVERRIDE;
73 73
74 private: 74 private:
75 GrGLuint fRTFBOID; 75 GrGLuint fRTFBOID;
76 GrGLuint fTexFBOID; 76 GrGLuint fTexFBOID;
77 GrGLuint fMSColorRenderbufferID; 77 GrGLuint fMSColorRenderbufferID;
78 bool fIsWrapped;
bsalomon 2014/12/09 20:02:06 Can you add a comment that we track this separatel
78 79
79 // when we switch to this render target we want to set the viewport to 80 // when we switch to this render target we want to set the viewport to
80 // only render to content area (as opposed to the whole allocation) and 81 // only render to content area (as opposed to the whole allocation) and
81 // we want the rendering to be at top left (GL has origin in bottom left) 82 // we want the rendering to be at top left (GL has origin in bottom left)
82 GrGLIRect fViewport; 83 GrGLIRect fViewport;
83 84
84 // onGpuMemorySize() needs to know what how many color values are owned per pixel. However, 85 // onGpuMemorySize() needs to know what how many color values are owned per pixel. However,
85 // abandon and release zero out the IDs and the cache needs to know the size even after those 86 // abandon and release zero out the IDs and the cache needs to know the size even after those
86 // actions. 87 // actions.
87 uint8_t fColorValuesPerPixel; 88 uint8_t fColorValuesPerPixel;
88 89
89 typedef GrRenderTarget INHERITED; 90 typedef GrRenderTarget INHERITED;
90 }; 91 };
91 92
92 #endif 93 #endif
OLDNEW
« 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