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

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

Issue 23483042: Replace uses of GrNoncopyable by SkNoncopyable. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rm GrNoncopyable.h Created 7 years, 3 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 | « src/gpu/gl/GrGLShaderBuilder.h ('k') | src/gpu/gl/debug/GrFakeRefObj.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 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 #ifndef GrGpuGL_DEFINED 8 #ifndef GrGpuGL_DEFINED
9 #define GrGpuGL_DEFINED 9 #define GrGpuGL_DEFINED
10 10
11 #include "GrBinHashKey.h" 11 #include "GrBinHashKey.h"
12 #include "GrDrawState.h" 12 #include "GrDrawState.h"
13 #include "GrGpu.h"
14 #include "GrGLContext.h" 13 #include "GrGLContext.h"
14 #include "GrGLIRect.h"
15 #include "GrGLIndexBuffer.h" 15 #include "GrGLIndexBuffer.h"
16 #include "GrGLIRect.h"
17 #include "GrGLProgram.h" 16 #include "GrGLProgram.h"
18 #include "GrGLStencilBuffer.h" 17 #include "GrGLStencilBuffer.h"
19 #include "GrGLTexture.h" 18 #include "GrGLTexture.h"
20 #include "GrGLVertexArray.h" 19 #include "GrGLVertexArray.h"
21 #include "GrGLVertexBuffer.h" 20 #include "GrGLVertexBuffer.h"
21 #include "GrGpu.h"
22 #include "SkTypes.h"
22 #include "../GrTHashCache.h" 23 #include "../GrTHashCache.h"
23 24
24 #ifdef SK_DEVELOPER 25 #ifdef SK_DEVELOPER
25 #define PROGRAM_CACHE_STATS 26 #define PROGRAM_CACHE_STATS
26 #endif 27 #endif
27 28
28 class GrGpuGL : public GrGpu { 29 class GrGpuGL : public GrGpu {
29 public: 30 public:
30 GrGpuGL(const GrGLContext& ctx, GrContext* context); 31 GrGpuGL(const GrGLContext& ctx, GrContext* context);
31 virtual ~GrGpuGL(); 32 virtual ~GrGpuGL();
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 // (after any blending optimizations or dual source blending considerations 164 // (after any blending optimizations or dual source blending considerations
164 // have been accounted for). 165 // have been accounted for).
165 void flushBlend(bool isLines, GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff); 166 void flushBlend(bool isLines, GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff);
166 167
167 bool hasExtension(const char* ext) const { return fGLContext.info().hasExten sion(ext); } 168 bool hasExtension(const char* ext) const { return fGLContext.info().hasExten sion(ext); }
168 169
169 const GrGLContext& glContext() const { return fGLContext; } 170 const GrGLContext& glContext() const { return fGLContext; }
170 171
171 static bool BlendCoeffReferencesConstant(GrBlendCoeff coeff); 172 static bool BlendCoeffReferencesConstant(GrBlendCoeff coeff);
172 173
173 class ProgramCache : public ::GrNoncopyable { 174 class ProgramCache : public ::SkNoncopyable {
174 public: 175 public:
175 ProgramCache(GrGpuGL* gpu); 176 ProgramCache(GrGpuGL* gpu);
176 ~ProgramCache(); 177 ~ProgramCache();
177 178
178 void abandon(); 179 void abandon();
179 GrGLProgram* getProgram(const GrGLProgramDesc& desc, 180 GrGLProgram* getProgram(const GrGLProgramDesc& desc,
180 const GrEffectStage* colorStages[], 181 const GrEffectStage* colorStages[],
181 const GrEffectStage* coverageStages[]); 182 const GrEffectStage* coverageStages[]);
182 183
183 private: 184 private:
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 ///@} 435 ///@}
435 436
436 // we record what stencil format worked last time to hopefully exit early 437 // we record what stencil format worked last time to hopefully exit early
437 // from our loop that tries stencil formats and calls check fb status. 438 // from our loop that tries stencil formats and calls check fb status.
438 int fLastSuccessfulStencilFmtIdx; 439 int fLastSuccessfulStencilFmtIdx;
439 440
440 typedef GrGpu INHERITED; 441 typedef GrGpu INHERITED;
441 }; 442 };
442 443
443 #endif 444 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLShaderBuilder.h ('k') | src/gpu/gl/debug/GrFakeRefObj.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698