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

Side by Side Diff: include/gpu/GrTextureAccess.h

Issue 1217573002: remove SkInstCnt (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 years, 5 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/GrSurface.h ('k') | include/gpu/SkGrPixelRef.h » ('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 2012 Google Inc. 2 * Copyright 2012 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 #ifndef GrTextureAccess_DEFINED 8 #ifndef GrTextureAccess_DEFINED
9 #define GrTextureAccess_DEFINED 9 #define GrTextureAccess_DEFINED
10 10
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 }; 106 };
107 107
108 /** A class representing the swizzle access pattern for a texture. Note that if the texture is 108 /** A class representing the swizzle access pattern for a texture. Note that if the texture is
109 * an alpha-only texture then the alpha channel is substituted for other compon ents. Any mangling 109 * an alpha-only texture then the alpha channel is substituted for other compon ents. Any mangling
110 * to handle the r,g,b->a conversions for alpha textures is automatically inclu ded in the stage 110 * to handle the r,g,b->a conversions for alpha textures is automatically inclu ded in the stage
111 * key. However, if a GrProcessor uses different swizzles based on its input th en it must 111 * key. However, if a GrProcessor uses different swizzles based on its input th en it must
112 * consider that variation in its key-generation. 112 * consider that variation in its key-generation.
113 */ 113 */
114 class GrTextureAccess : public SkNoncopyable { 114 class GrTextureAccess : public SkNoncopyable {
115 public: 115 public:
116 SK_DECLARE_INST_COUNT(GrTextureAccess);
117
118 /** 116 /**
119 * A default GrTextureAccess must have reset() called on it in a GrProcessor subclass's 117 * A default GrTextureAccess must have reset() called on it in a GrProcessor subclass's
120 * constructor if it will be accessible via GrProcessor::textureAccess(). 118 * constructor if it will be accessible via GrProcessor::textureAccess().
121 */ 119 */
122 GrTextureAccess(); 120 GrTextureAccess();
123 121
124 /** 122 /**
125 * Uses the default swizzle, "rgba". 123 * Uses the default swizzle, "rgba".
126 */ 124 */
127 GrTextureAccess(GrTexture*, const GrTextureParams&); 125 GrTextureAccess(GrTexture*, const GrTextureParams&);
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 185
188 ProgramTexture fTexture; 186 ProgramTexture fTexture;
189 GrTextureParams fParams; 187 GrTextureParams fParams;
190 uint32_t fSwizzleMask; 188 uint32_t fSwizzleMask;
191 char fSwizzle[5]; 189 char fSwizzle[5];
192 190
193 typedef SkNoncopyable INHERITED; 191 typedef SkNoncopyable INHERITED;
194 }; 192 };
195 193
196 #endif 194 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrSurface.h ('k') | include/gpu/SkGrPixelRef.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698