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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 GrSurfaceOrigin renderTargetOrigin); | 52 GrSurfaceOrigin renderTargetOrigin); |
53 enum PathTexGenComponents { | 53 enum PathTexGenComponents { |
54 kS_PathTexGenComponents = 1, | 54 kS_PathTexGenComponents = 1, |
55 kST_PathTexGenComponents = 2, | 55 kST_PathTexGenComponents = 2, |
56 kSTR_PathTexGenComponents = 3 | 56 kSTR_PathTexGenComponents = 3 |
57 }; | 57 }; |
58 void enablePathTexGen(int unitIdx, PathTexGenComponents, const GrGLfloat* co
efficients); | 58 void enablePathTexGen(int unitIdx, PathTexGenComponents, const GrGLfloat* co
efficients); |
59 void enablePathTexGen(int unitIdx, PathTexGenComponents, const SkMatrix& mat
rix); | 59 void enablePathTexGen(int unitIdx, PathTexGenComponents, const SkMatrix& mat
rix); |
60 void flushPathTexGenSettings(int numUsedTexCoordSets); | 60 void flushPathTexGenSettings(int numUsedTexCoordSets); |
61 bool shouldUseFixedFunctionTexturing() const { | 61 bool shouldUseFixedFunctionTexturing() const { |
62 return this->glCaps().pathRenderingSupport(); | 62 return this->glCaps().pathRenderingSupport() && glStandard() == kGL_GrGL
Standard; |
63 } | 63 } |
| 64 void setProgramPathFragmentInputGen(int fragmentInputLocation, size_t compon
ents, const GrGLfloat* coefficients); |
64 | 65 |
65 bool programUnitTest(int maxStages); | 66 bool programUnitTest(int maxStages); |
66 | 67 |
67 // GrGpu overrides | 68 // GrGpu overrides |
68 virtual GrPixelConfig preferredReadPixelsConfig(GrPixelConfig readConfig, | 69 virtual GrPixelConfig preferredReadPixelsConfig(GrPixelConfig readConfig, |
69 GrPixelConfig surfaceConfig)
const SK_OVERRIDE; | 70 GrPixelConfig surfaceConfig)
const SK_OVERRIDE; |
70 virtual GrPixelConfig preferredWritePixelsConfig(GrPixelConfig writeConfig, | 71 virtual GrPixelConfig preferredWritePixelsConfig(GrPixelConfig writeConfig, |
71 GrPixelConfig surfaceConfig
) const SK_OVERRIDE; | 72 GrPixelConfig surfaceConfig
) const SK_OVERRIDE; |
72 virtual bool canWriteTexturePixels(const GrTexture*, GrPixelConfig srcConfig
) const SK_OVERRIDE; | 73 virtual bool canWriteTexturePixels(const GrTexture*, GrPixelConfig srcConfig
) const SK_OVERRIDE; |
73 virtual bool readPixelsWillPayForYFlip( | 74 virtual bool readPixelsWillPayForYFlip( |
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 // we record what stencil format worked last time to hopefully exit early | 480 // we record what stencil format worked last time to hopefully exit early |
480 // from our loop that tries stencil formats and calls check fb status. | 481 // from our loop that tries stencil formats and calls check fb status. |
481 int fLastSuccessfulStencilFmtIdx; | 482 int fLastSuccessfulStencilFmtIdx; |
482 | 483 |
483 SkAutoTDelete<GrGLNameAllocator> fPathNameAllocator; | 484 SkAutoTDelete<GrGLNameAllocator> fPathNameAllocator; |
484 | 485 |
485 typedef GrGpu INHERITED; | 486 typedef GrGpu INHERITED; |
486 }; | 487 }; |
487 | 488 |
488 #endif | 489 #endif |
OLD | NEW |