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

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

Issue 226183018: SkNonCopyable should be used with private inheritance. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: name resolution Created 6 years, 8 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/GrEffectUnitTest.h ('k') | src/core/SkMatrixClipStateMgr.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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 SkShader::TileMode fTileModes[2]; 105 SkShader::TileMode fTileModes[2];
106 FilterMode fFilterMode; 106 FilterMode fFilterMode;
107 }; 107 };
108 108
109 /** A class representing the swizzle access pattern for a texture. Note that if the texture is 109 /** A class representing the swizzle access pattern for a texture. Note that if the texture is
110 * an alpha-only texture then the alpha channel is substituted for other compon ents. Any mangling 110 * an alpha-only texture then the alpha channel is substituted for other compon ents. Any mangling
111 * to handle the r,g,b->a conversions for alpha textures is automatically inclu ded in the stage 111 * to handle the r,g,b->a conversions for alpha textures is automatically inclu ded in the stage
112 * key. However, if a GrEffect uses different swizzles based on its input then it must 112 * key. However, if a GrEffect uses different swizzles based on its input then it must
113 * consider that variation in its key-generation. 113 * consider that variation in its key-generation.
114 */ 114 */
115 class GrTextureAccess : public SkNoncopyable { 115 class GrTextureAccess : SkNoncopyable {
116 public: 116 public:
117 /** 117 /**
118 * A default GrTextureAccess must have reset() called on it in a GrEffect su bclass's 118 * A default GrTextureAccess must have reset() called on it in a GrEffect su bclass's
119 * constructor if it will be accessible via GrEffect::textureAccess(). 119 * constructor if it will be accessible via GrEffect::textureAccess().
120 */ 120 */
121 GrTextureAccess(); 121 GrTextureAccess();
122 122
123 /** 123 /**
124 * Uses the default swizzle, "rgba". 124 * Uses the default swizzle, "rgba".
125 */ 125 */
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 179
180 GrTextureParams fParams; 180 GrTextureParams fParams;
181 SkAutoTUnref<GrTexture> fTexture; 181 SkAutoTUnref<GrTexture> fTexture;
182 uint32_t fSwizzleMask; 182 uint32_t fSwizzleMask;
183 char fSwizzle[5]; 183 char fSwizzle[5];
184 184
185 typedef SkNoncopyable INHERITED; 185 typedef SkNoncopyable INHERITED;
186 }; 186 };
187 187
188 #endif 188 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrEffectUnitTest.h ('k') | src/core/SkMatrixClipStateMgr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698