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 22 matching lines...) Expand all Loading... |
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; } | 37 const GrGLContextInfo& ctxInfo() const { return fGLContext; } |
38 GrGLStandard glStandard() const { return fGLContext.standard(); } | 38 GrGLStandard glStandard() const { return fGLContext.standard(); } |
39 GrGLVersion glVersion() const { return fGLContext.version(); } | 39 GrGLVersion glVersion() const { return fGLContext.version(); } |
40 GrGLSLGeneration glslGeneration() const { return fGLContext.glslGeneration()
; } | 40 GrGLSLGeneration glslGeneration() const { return fGLContext.glslGeneration()
; } |
41 const GrGLCaps& glCaps() const { return *fGLContext.caps(); } | 41 const GrGLCaps& glCaps() const { return *fGLContext.caps(); } |
42 | 42 |
| 43 virtual void discard(GrRenderTarget*) SK_OVERRIDE; |
| 44 |
43 // Used by GrGLProgram and GrGLTexGenProgramEffects to configure OpenGL stat
e. | 45 // Used by GrGLProgram and GrGLTexGenProgramEffects to configure OpenGL stat
e. |
44 void bindTexture(int unitIdx, const GrTextureParams& params, GrGLTexture* te
xture); | 46 void bindTexture(int unitIdx, const GrTextureParams& params, GrGLTexture* te
xture); |
45 void setProjectionMatrix(const SkMatrix& matrix, | 47 void setProjectionMatrix(const SkMatrix& matrix, |
46 const SkISize& renderTargetSize, | 48 const SkISize& renderTargetSize, |
47 GrSurfaceOrigin renderTargetOrigin); | 49 GrSurfaceOrigin renderTargetOrigin); |
48 enum TexGenComponents { | 50 enum TexGenComponents { |
49 kS_TexGenComponents = 1, | 51 kS_TexGenComponents = 1, |
50 kST_TexGenComponents = 2, | 52 kST_TexGenComponents = 2, |
51 kSTR_TexGenComponents = 3 | 53 kSTR_TexGenComponents = 3 |
52 }; | 54 }; |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 ///@} | 456 ///@} |
455 | 457 |
456 // we record what stencil format worked last time to hopefully exit early | 458 // we record what stencil format worked last time to hopefully exit early |
457 // from our loop that tries stencil formats and calls check fb status. | 459 // from our loop that tries stencil formats and calls check fb status. |
458 int fLastSuccessfulStencilFmtIdx; | 460 int fLastSuccessfulStencilFmtIdx; |
459 | 461 |
460 typedef GrGpu INHERITED; | 462 typedef GrGpu INHERITED; |
461 }; | 463 }; |
462 | 464 |
463 #endif | 465 #endif |
OLD | NEW |