OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |