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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 virtual GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTarge
tDesc&) SK_OVERRIDE; | 129 virtual GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTarge
tDesc&) SK_OVERRIDE; |
130 virtual bool createStencilBufferForRenderTarget(GrRenderTarget* rt, | 130 virtual bool createStencilBufferForRenderTarget(GrRenderTarget* rt, |
131 int width, | 131 int width, |
132 int height) SK_OVERRIDE; | 132 int height) SK_OVERRIDE; |
133 virtual bool attachStencilBufferToRenderTarget( | 133 virtual bool attachStencilBufferToRenderTarget( |
134 GrStencilBuffer* sb, | 134 GrStencilBuffer* sb, |
135 GrRenderTarget* rt) SK_OVERRIDE; | 135 GrRenderTarget* rt) SK_OVERRIDE; |
136 | 136 |
137 virtual void onClear(const SkIRect* rect, GrColor color, bool canIgnoreRect)
SK_OVERRIDE; | 137 virtual void onClear(const SkIRect* rect, GrColor color, bool canIgnoreRect)
SK_OVERRIDE; |
138 | 138 |
139 virtual void onForceRenderTargetFlush() SK_OVERRIDE; | |
140 | |
141 virtual bool onReadPixels(GrRenderTarget* target, | 139 virtual bool onReadPixels(GrRenderTarget* target, |
142 int left, int top, | 140 int left, int top, |
143 int width, int height, | 141 int width, int height, |
144 GrPixelConfig, | 142 GrPixelConfig, |
145 void* buffer, | 143 void* buffer, |
146 size_t rowBytes) SK_OVERRIDE; | 144 size_t rowBytes) SK_OVERRIDE; |
147 | 145 |
148 virtual bool onWriteTexturePixels(GrTexture* texture, | 146 virtual bool onWriteTexturePixels(GrTexture* texture, |
149 int left, int top, int width, int height, | 147 int left, int top, int width, int height, |
150 GrPixelConfig config, const void* buffer, | 148 GrPixelConfig config, const void* buffer, |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 ///@} | 454 ///@} |
457 | 455 |
458 // we record what stencil format worked last time to hopefully exit early | 456 // we record what stencil format worked last time to hopefully exit early |
459 // from our loop that tries stencil formats and calls check fb status. | 457 // from our loop that tries stencil formats and calls check fb status. |
460 int fLastSuccessfulStencilFmtIdx; | 458 int fLastSuccessfulStencilFmtIdx; |
461 | 459 |
462 typedef GrGpu INHERITED; | 460 typedef GrGpu INHERITED; |
463 }; | 461 }; |
464 | 462 |
465 #endif | 463 #endif |
OLD | NEW |