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

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

Issue 865603007: Remove unused and unimplemented abstract functions from GrRenderTarget (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add missing part Created 5 years, 10 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
« no previous file with comments | « include/gpu/GrRenderTarget.h ('k') | no next file » | 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 24 matching lines...) Expand all
35 35
36 // The following two functions return the same ID when a 36 // The following two functions return the same ID when a
37 // texture/render target is multisampled, and different IDs when 37 // texture/render target is multisampled, and different IDs when
38 // it is. 38 // it is.
39 // FBO ID used to render into 39 // FBO ID used to render into
40 GrGLuint renderFBOID() const { return fRTFBOID; } 40 GrGLuint renderFBOID() const { return fRTFBOID; }
41 // FBO ID that has texture ID attached. 41 // FBO ID that has texture ID attached.
42 GrGLuint textureFBOID() const { return fTexFBOID; } 42 GrGLuint textureFBOID() const { return fTexFBOID; }
43 43
44 // override of GrRenderTarget 44 // override of GrRenderTarget
45 GrBackendObject getRenderTargetHandle() const SK_OVERRIDE { return this->ren derFBOID(); }
46 GrBackendObject getRenderTargetResolvedHandle() const SK_OVERRIDE { return t his->textureFBOID(); }
47 ResolveType getResolveType() const SK_OVERRIDE { 45 ResolveType getResolveType() const SK_OVERRIDE {
48 if (!this->isMultisampled() || 46 if (!this->isMultisampled() ||
49 fRTFBOID == fTexFBOID) { 47 fRTFBOID == fTexFBOID) {
50 // catches FBO 0 and non MSAA case 48 // catches FBO 0 and non MSAA case
51 return kAutoResolves_ResolveType; 49 return kAutoResolves_ResolveType;
52 } else if (kUnresolvableFBOID == fTexFBOID) { 50 } else if (kUnresolvableFBOID == fTexFBOID) {
53 return kCantResolve_ResolveType; 51 return kCantResolve_ResolveType;
54 } else { 52 } else {
55 return kCanResolve_ResolveType; 53 return kCanResolve_ResolveType;
56 } 54 }
(...skipping 30 matching lines...) Expand all
87 85
88 // onGpuMemorySize() needs to know what how many color values are owned per pixel. However, 86 // onGpuMemorySize() needs to know what how many color values are owned per pixel. However,
89 // abandon and release zero out the IDs and the cache needs to know the size even after those 87 // abandon and release zero out the IDs and the cache needs to know the size even after those
90 // actions. 88 // actions.
91 uint8_t fColorValuesPerPixel; 89 uint8_t fColorValuesPerPixel;
92 90
93 typedef GrRenderTarget INHERITED; 91 typedef GrRenderTarget INHERITED;
94 }; 92 };
95 93
96 #endif 94 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrRenderTarget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698