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

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

Issue 133413003: Rename GrGLBinding->GrGLStandard, no longer a bitfield (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: actually fix enum names? Created 6 years, 11 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
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
(...skipping 17 matching lines...) Expand all
28 28
29 class GrGpuGL : public GrGpu { 29 class GrGpuGL : public GrGpu {
30 public: 30 public:
31 GrGpuGL(const GrGLContext& ctx, GrContext* context); 31 GrGpuGL(const GrGLContext& ctx, GrContext* context);
32 virtual ~GrGpuGL(); 32 virtual ~GrGpuGL();
33 33
34 const GrGLContext& glContext() const { return fGLContext; } 34 const GrGLContext& glContext() const { return fGLContext; }
35 35
36 const GrGLInterface* glInterface() const { return fGLContext.interface(); } 36 const GrGLInterface* glInterface() const { return fGLContext.interface(); }
37 const GrGLContextInfo& ctxInfo() const { return fGLContext.info(); } 37 const GrGLContextInfo& ctxInfo() const { return fGLContext.info(); }
38 GrGLBinding glBinding() const { return fGLContext.info().binding(); } 38 GrGLStandard glStandard() const { return fGLContext.info().standard(); }
39 GrGLVersion glVersion() const { return fGLContext.info().version(); } 39 GrGLVersion glVersion() const { return fGLContext.info().version(); }
40 GrGLSLGeneration glslGeneration() const { return fGLContext.info().glslGener ation(); } 40 GrGLSLGeneration glslGeneration() const { return fGLContext.info().glslGener ation(); }
41 41
42 // Used by GrGLProgram and GrGLTexGenProgramEffects to configure OpenGL stat e. 42 // Used by GrGLProgram and GrGLTexGenProgramEffects to configure OpenGL stat e.
43 void bindTexture(int unitIdx, const GrTextureParams& params, GrGLTexture* te xture); 43 void bindTexture(int unitIdx, const GrTextureParams& params, GrGLTexture* te xture);
44 void setProjectionMatrix(const SkMatrix& matrix, 44 void setProjectionMatrix(const SkMatrix& matrix,
45 const SkISize& renderTargetSize, 45 const SkISize& renderTargetSize,
46 GrSurfaceOrigin renderTargetOrigin); 46 GrSurfaceOrigin renderTargetOrigin);
47 enum TexGenComponents { 47 enum TexGenComponents {
48 kS_TexGenComponents = 1, 48 kS_TexGenComponents = 1,
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 ///@} 450 ///@}
451 451
452 // we record what stencil format worked last time to hopefully exit early 452 // we record what stencil format worked last time to hopefully exit early
453 // from our loop that tries stencil formats and calls check fb status. 453 // from our loop that tries stencil formats and calls check fb status.
454 int fLastSuccessfulStencilFmtIdx; 454 int fLastSuccessfulStencilFmtIdx;
455 455
456 typedef GrGpu INHERITED; 456 typedef GrGpu INHERITED;
457 }; 457 };
458 458
459 #endif 459 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698