| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, |
| 49 kST_TexGenComponents = 2, | 49 kST_TexGenComponents = 2, |
| 50 kSTR_TexGenComponents = 3 | 50 kSTR_TexGenComponents = 3 |
| 51 }; | 51 }; |
| 52 void enableTexGen(int unitIdx, TexGenComponents, const GrGLfloat* coefficien
ts); | 52 void enableTexGen(int unitIdx, TexGenComponents, const GrGLfloat* coefficien
ts); |
| 53 void enableTexGen(int unitIdx, TexGenComponents, const SkMatrix& matrix); | 53 void enableTexGen(int unitIdx, TexGenComponents, const SkMatrix& matrix); |
| 54 void disableUnusedTexGen(int numUsedTexCoordSets); | 54 void flushTexGenSettings(int numUsedTexCoordSets); |
| 55 bool shouldUseFixedFunctionTexturing() const { | 55 bool shouldUseFixedFunctionTexturing() const { |
| 56 return this->glCaps().fixedFunctionSupport() && | 56 return this->glCaps().fixedFunctionSupport() && |
| 57 this->glCaps().pathRenderingSupport(); | 57 this->glCaps().pathRenderingSupport(); |
| 58 } | 58 } |
| 59 | 59 |
| 60 bool programUnitTest(int maxStages); | 60 bool programUnitTest(int maxStages); |
| 61 | 61 |
| 62 // GrGpu overrides | 62 // GrGpu overrides |
| 63 virtual GrPixelConfig preferredReadPixelsConfig(GrPixelConfig readConfig, | 63 virtual GrPixelConfig preferredReadPixelsConfig(GrPixelConfig readConfig, |
| 64 GrPixelConfig surfaceConfig)
const SK_OVERRIDE; | 64 GrPixelConfig surfaceConfig)
const SK_OVERRIDE; |
| (...skipping 385 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 |