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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 SkASSERT(glCaps().pathRenderingSupport()); | 47 SkASSERT(glCaps().pathRenderingSupport()); |
48 return static_cast<GrGLPathRendering*>(pathRendering()); | 48 return static_cast<GrGLPathRendering*>(pathRendering()); |
49 } | 49 } |
50 | 50 |
51 virtual void discard(GrRenderTarget*) SK_OVERRIDE; | 51 virtual void discard(GrRenderTarget*) SK_OVERRIDE; |
52 | 52 |
53 // Used by GrGLProgram and GrGLPathTexGenProgramEffects to configure OpenGL | 53 // Used by GrGLProgram and GrGLPathTexGenProgramEffects to configure OpenGL |
54 // state. | 54 // state. |
55 void bindTexture(int unitIdx, const GrTextureParams& params, GrGLTexture* te
xture); | 55 void bindTexture(int unitIdx, const GrTextureParams& params, GrGLTexture* te
xture); |
56 | 56 |
57 bool programUnitTest(int maxStages); | |
58 | |
59 // GrGpu overrides | 57 // GrGpu overrides |
60 virtual GrPixelConfig preferredReadPixelsConfig(GrPixelConfig readConfig, | 58 virtual GrPixelConfig preferredReadPixelsConfig(GrPixelConfig readConfig, |
61 GrPixelConfig surfaceConfig)
const SK_OVERRIDE; | 59 GrPixelConfig surfaceConfig)
const SK_OVERRIDE; |
62 virtual GrPixelConfig preferredWritePixelsConfig(GrPixelConfig writeConfig, | 60 virtual GrPixelConfig preferredWritePixelsConfig(GrPixelConfig writeConfig, |
63 GrPixelConfig surfaceConfig
) const SK_OVERRIDE; | 61 GrPixelConfig surfaceConfig
) const SK_OVERRIDE; |
64 virtual bool canWriteTexturePixels(const GrTexture*, GrPixelConfig srcConfig
) const SK_OVERRIDE; | 62 virtual bool canWriteTexturePixels(const GrTexture*, GrPixelConfig srcConfig
) const SK_OVERRIDE; |
65 virtual bool readPixelsWillPayForYFlip( | 63 virtual bool readPixelsWillPayForYFlip( |
66 GrRenderTarget* renderTarget, | 64 GrRenderTarget* renderTarget, |
67 int left, int top, | 65 int left, int top, |
68 int width, int height, | 66 int width, int height, |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 | 450 |
453 // we record what stencil format worked last time to hopefully exit early | 451 // we record what stencil format worked last time to hopefully exit early |
454 // from our loop that tries stencil formats and calls check fb status. | 452 // from our loop that tries stencil formats and calls check fb status. |
455 int fLastSuccessfulStencilFmtIdx; | 453 int fLastSuccessfulStencilFmtIdx; |
456 | 454 |
457 typedef GrGpu INHERITED; | 455 typedef GrGpu INHERITED; |
458 friend class GrGLPathRendering; // For accessing setTextureUnit. | 456 friend class GrGLPathRendering; // For accessing setTextureUnit. |
459 }; | 457 }; |
460 | 458 |
461 #endif | 459 #endif |
OLD | NEW |