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 | 8 |
9 | 9 |
10 #ifndef GrGpuGL_DEFINED | 10 #ifndef GrGpuGL_DEFINED |
(...skipping 26 matching lines...) Expand all Loading... |
37 GrGLBinding glBinding() const { return fGLContext.info().binding(); } | 37 GrGLBinding glBinding() const { return fGLContext.info().binding(); } |
38 GrGLVersion glVersion() const { return fGLContext.info().version(); } | 38 GrGLVersion glVersion() const { return fGLContext.info().version(); } |
39 GrGLSLGeneration glslGeneration() const { return fGLContext.info().glslGener
ation(); } | 39 GrGLSLGeneration glslGeneration() const { return fGLContext.info().glslGener
ation(); } |
40 | 40 |
41 // Used by GrGLProgram to bind necessary textures for GrGLEffects. | 41 // Used by GrGLProgram to bind necessary textures for GrGLEffects. |
42 void bindTexture(int unitIdx, const GrTextureParams& params, GrGLTexture* te
xture); | 42 void bindTexture(int unitIdx, const GrTextureParams& params, GrGLTexture* te
xture); |
43 | 43 |
44 bool programUnitTest(int maxStages); | 44 bool programUnitTest(int maxStages); |
45 | 45 |
46 // GrGpu overrides | 46 // GrGpu overrides |
47 virtual GrPixelConfig preferredReadPixelsConfig(GrPixelConfig config) const
SK_OVERRIDE; | 47 virtual GrPixelConfig preferredReadPixelsConfig(GrPixelConfig readConfig, |
48 virtual GrPixelConfig preferredWritePixelsConfig(GrPixelConfig config) const
SK_OVERRIDE; | 48 GrPixelConfig surfaceConfig)
const SK_OVERRIDE; |
| 49 virtual GrPixelConfig preferredWritePixelsConfig(GrPixelConfig writeConfig, |
| 50 GrPixelConfig surfaceConfig
) const SK_OVERRIDE; |
49 virtual bool canWriteTexturePixels(const GrTexture*, GrPixelConfig srcConfig
) const SK_OVERRIDE; | 51 virtual bool canWriteTexturePixels(const GrTexture*, GrPixelConfig srcConfig
) const SK_OVERRIDE; |
50 virtual bool readPixelsWillPayForYFlip( | 52 virtual bool readPixelsWillPayForYFlip( |
51 GrRenderTarget* renderTarget, | 53 GrRenderTarget* renderTarget, |
52 int left, int top, | 54 int left, int top, |
53 int width, int height, | 55 int width, int height, |
54 GrPixelConfig config, | 56 GrPixelConfig config, |
55 size_t rowBytes) const SK_OVERRIDE; | 57 size_t rowBytes) const SK_OVERRIDE; |
56 virtual bool fullReadPixelsIsFasterThanPartial() const SK_OVERRIDE; | 58 virtual bool fullReadPixelsIsFasterThanPartial() const SK_OVERRIDE; |
57 | 59 |
58 virtual void initCopySurfaceDstDesc(const GrSurface* src, GrTextureDesc* des
c) SK_OVERRIDE; | 60 virtual void initCopySurfaceDstDesc(const GrSurface* src, GrTextureDesc* des
c) SK_OVERRIDE; |
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 ///@} | 429 ///@} |
428 | 430 |
429 // we record what stencil format worked last time to hopefully exit early | 431 // we record what stencil format worked last time to hopefully exit early |
430 // from our loop that tries stencil formats and calls check fb status. | 432 // from our loop that tries stencil formats and calls check fb status. |
431 int fLastSuccessfulStencilFmtIdx; | 433 int fLastSuccessfulStencilFmtIdx; |
432 | 434 |
433 typedef GrGpu INHERITED; | 435 typedef GrGpu INHERITED; |
434 }; | 436 }; |
435 | 437 |
436 #endif | 438 #endif |
OLD | NEW |