| 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 return static_cast<GrGLPathRendering*>(pathRendering()); | 44 return static_cast<GrGLPathRendering*>(pathRendering()); |
| 45 } | 45 } |
| 46 | 46 |
| 47 virtual void discard(GrRenderTarget*) SK_OVERRIDE; | 47 virtual void discard(GrRenderTarget*) SK_OVERRIDE; |
| 48 | 48 |
| 49 // Used by GrGLProgram and GrGLPathTexGenProgramEffects to configure OpenGL | 49 // Used by GrGLProgram and GrGLPathTexGenProgramEffects to configure OpenGL |
| 50 // state. | 50 // state. |
| 51 void bindTexture(int unitIdx, const GrTextureParams& params, GrGLTexture* te
xture); | 51 void bindTexture(int unitIdx, const GrTextureParams& params, GrGLTexture* te
xture); |
| 52 | 52 |
| 53 bool shouldUseFixedFunctionTexturing() const { | 53 bool shouldUseFixedFunctionTexturing() const { |
| 54 // At the moment non-fixed-function texturing is not implemented |
| 55 // even though the GrGLPathRendering would support it. Thus just |
| 56 // return the below. |
| 54 return this->glCaps().pathRenderingSupport(); | 57 return this->glCaps().pathRenderingSupport(); |
| 55 } | 58 } |
| 56 | 59 |
| 57 bool programUnitTest(int maxStages); | 60 bool programUnitTest(int maxStages); |
| 58 | 61 |
| 59 // GrGpu overrides | 62 // GrGpu overrides |
| 60 virtual GrPixelConfig preferredReadPixelsConfig(GrPixelConfig readConfig, | 63 virtual GrPixelConfig preferredReadPixelsConfig(GrPixelConfig readConfig, |
| 61 GrPixelConfig surfaceConfig)
const SK_OVERRIDE; | 64 GrPixelConfig surfaceConfig)
const SK_OVERRIDE; |
| 62 virtual GrPixelConfig preferredWritePixelsConfig(GrPixelConfig writeConfig, | 65 virtual GrPixelConfig preferredWritePixelsConfig(GrPixelConfig writeConfig, |
| 63 GrPixelConfig surfaceConfig
) const SK_OVERRIDE; | 66 GrPixelConfig surfaceConfig
) const SK_OVERRIDE; |
| (...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 | 442 |
| 440 // we record what stencil format worked last time to hopefully exit early | 443 // we record what stencil format worked last time to hopefully exit early |
| 441 // from our loop that tries stencil formats and calls check fb status. | 444 // from our loop that tries stencil formats and calls check fb status. |
| 442 int fLastSuccessfulStencilFmtIdx; | 445 int fLastSuccessfulStencilFmtIdx; |
| 443 | 446 |
| 444 typedef GrGpu INHERITED; | 447 typedef GrGpu INHERITED; |
| 445 friend class GrGLPathRendering; // For accessing setTextureUnit. | 448 friend class GrGLPathRendering; // For accessing setTextureUnit. |
| 446 }; | 449 }; |
| 447 | 450 |
| 448 #endif | 451 #endif |
| OLD | NEW |