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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 const SkISize& renderTargetSize, | 54 const SkISize& renderTargetSize, |
55 GrSurfaceOrigin renderTargetOrigin); | 55 GrSurfaceOrigin renderTargetOrigin); |
56 enum PathTexGenComponents { | 56 enum PathTexGenComponents { |
57 kS_PathTexGenComponents = 1, | 57 kS_PathTexGenComponents = 1, |
58 kST_PathTexGenComponents = 2, | 58 kST_PathTexGenComponents = 2, |
59 kSTR_PathTexGenComponents = 3 | 59 kSTR_PathTexGenComponents = 3 |
60 }; | 60 }; |
61 void enablePathTexGen(int unitIdx, PathTexGenComponents, const GrGLfloat* co
efficients); | 61 void enablePathTexGen(int unitIdx, PathTexGenComponents, const GrGLfloat* co
efficients); |
62 void enablePathTexGen(int unitIdx, PathTexGenComponents, const SkMatrix& mat
rix); | 62 void enablePathTexGen(int unitIdx, PathTexGenComponents, const SkMatrix& mat
rix); |
63 void flushPathTexGenSettings(int numUsedTexCoordSets); | 63 void flushPathTexGenSettings(int numUsedTexCoordSets); |
64 bool shouldUseFixedFunctionTexturing() const { | |
65 return this->glCaps().pathRenderingSupport(); | |
66 } | |
67 | 64 |
68 bool programUnitTest(int maxStages); | 65 bool programUnitTest(int maxStages); |
69 | 66 |
70 // GrGpu overrides | 67 // GrGpu overrides |
71 virtual GrPixelConfig preferredReadPixelsConfig(GrPixelConfig readConfig, | 68 virtual GrPixelConfig preferredReadPixelsConfig(GrPixelConfig readConfig, |
72 GrPixelConfig surfaceConfig)
const SK_OVERRIDE; | 69 GrPixelConfig surfaceConfig)
const SK_OVERRIDE; |
73 virtual GrPixelConfig preferredWritePixelsConfig(GrPixelConfig writeConfig, | 70 virtual GrPixelConfig preferredWritePixelsConfig(GrPixelConfig writeConfig, |
74 GrPixelConfig surfaceConfig
) const SK_OVERRIDE; | 71 GrPixelConfig surfaceConfig
) const SK_OVERRIDE; |
75 virtual bool canWriteTexturePixels(const GrTexture*, GrPixelConfig srcConfig
) const SK_OVERRIDE; | 72 virtual bool canWriteTexturePixels(const GrTexture*, GrPixelConfig srcConfig
) const SK_OVERRIDE; |
76 virtual bool readPixelsWillPayForYFlip( | 73 virtual bool readPixelsWillPayForYFlip( |
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 // we record what stencil format worked last time to hopefully exit early | 466 // we record what stencil format worked last time to hopefully exit early |
470 // from our loop that tries stencil formats and calls check fb status. | 467 // from our loop that tries stencil formats and calls check fb status. |
471 int fLastSuccessfulStencilFmtIdx; | 468 int fLastSuccessfulStencilFmtIdx; |
472 | 469 |
473 SkAutoTDelete<GrGLPathRendering> fPathRendering; | 470 SkAutoTDelete<GrGLPathRendering> fPathRendering; |
474 | 471 |
475 typedef GrGpu INHERITED; | 472 typedef GrGpu INHERITED; |
476 }; | 473 }; |
477 | 474 |
478 #endif | 475 #endif |
OLD | NEW |