| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 virtual GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) SK_OVE
RRIDE; | 125 virtual GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) SK_OVE
RRIDE; |
| 126 virtual GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&) SK_OVER
RIDE; | 126 virtual GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&) SK_OVER
RIDE; |
| 127 virtual GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTarge
tDesc&) SK_OVERRIDE; | 127 virtual GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTarge
tDesc&) SK_OVERRIDE; |
| 128 virtual bool createStencilBufferForRenderTarget(GrRenderTarget* rt, | 128 virtual bool createStencilBufferForRenderTarget(GrRenderTarget* rt, |
| 129 int width, | 129 int width, |
| 130 int height) SK_OVERRIDE; | 130 int height) SK_OVERRIDE; |
| 131 virtual bool attachStencilBufferToRenderTarget( | 131 virtual bool attachStencilBufferToRenderTarget( |
| 132 GrStencilBuffer* sb, | 132 GrStencilBuffer* sb, |
| 133 GrRenderTarget* rt) SK_OVERRIDE; | 133 GrRenderTarget* rt) SK_OVERRIDE; |
| 134 | 134 |
| 135 virtual void onGpuClear(GrRenderTarget*, const SkIRect* rect, GrColor color, | 135 virtual void onClear(GrRenderTarget*, const SkIRect* rect, GrColor color, |
| 136 bool canIgnoreRect) SK_OVERRIDE; | 136 bool canIgnoreRect) SK_OVERRIDE; |
| 137 | 137 |
| 138 virtual void onClearStencilClip(GrRenderTarget*, | 138 virtual void onClearStencilClip(GrRenderTarget*, |
| 139 const SkIRect& rect, | 139 const SkIRect& rect, |
| 140 bool insideClip) SK_OVERRIDE; | 140 bool insideClip) SK_OVERRIDE; |
| 141 | 141 |
| 142 virtual bool onReadPixels(GrRenderTarget* target, | 142 virtual bool onReadPixels(GrRenderTarget* target, |
| 143 int left, int top, | 143 int left, int top, |
| 144 int width, int height, | 144 int width, int height, |
| 145 GrPixelConfig, | 145 GrPixelConfig, |
| 146 void* buffer, | 146 void* buffer, |
| 147 size_t rowBytes) SK_OVERRIDE; | 147 size_t rowBytes) SK_OVERRIDE; |
| 148 | 148 |
| 149 virtual bool onWriteTexturePixels(GrTexture* texture, | 149 virtual bool onWriteTexturePixels(GrTexture* texture, |
| 150 int left, int top, int width, int height, | 150 int left, int top, int width, int height, |
| 151 GrPixelConfig config, const void* buffer, | 151 GrPixelConfig config, const void* buffer, |
| 152 size_t rowBytes) SK_OVERRIDE; | 152 size_t rowBytes) SK_OVERRIDE; |
| 153 | 153 |
| 154 virtual void onResolveRenderTarget(GrRenderTarget* target) SK_OVERRIDE; | 154 virtual void onResolveRenderTarget(GrRenderTarget* target) SK_OVERRIDE; |
| 155 | 155 |
| 156 virtual void onGpuDraw(const GrDrawTarget::DrawInfo&) SK_OVERRIDE; | 156 virtual void onDraw(const GrDrawTarget::DrawInfo&) SK_OVERRIDE; |
| 157 | 157 |
| 158 | 158 |
| 159 virtual void clearStencil(GrRenderTarget*) SK_OVERRIDE; | 159 virtual void clearStencil(GrRenderTarget*) SK_OVERRIDE; |
| 160 virtual bool flushGraphicsState(DrawType, | 160 virtual bool flushGraphicsState(DrawType, |
| 161 const GrClipMaskManager::ScissorState&, | 161 const GrClipMaskManager::ScissorState&, |
| 162 const GrDeviceCoordTexture* dstCopy) SK_OVER
RIDE; | 162 const GrDeviceCoordTexture* dstCopy) SK_OVER
RIDE; |
| 163 | 163 |
| 164 // GrDrawTarget overrides | 164 // GrDrawTarget overrides |
| 165 virtual void didAddGpuTraceMarker() SK_OVERRIDE; | 165 virtual void didAddGpuTraceMarker() SK_OVERRIDE; |
| 166 virtual void didRemoveGpuTraceMarker() SK_OVERRIDE; | 166 virtual void didRemoveGpuTraceMarker() SK_OVERRIDE; |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 | 450 |
| 451 // 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 |
| 452 // 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. |
| 453 int fLastSuccessfulStencilFmtIdx; | 453 int fLastSuccessfulStencilFmtIdx; |
| 454 | 454 |
| 455 typedef GrGpu INHERITED; | 455 typedef GrGpu INHERITED; |
| 456 friend class GrGLPathRendering; // For accessing setTextureUnit. | 456 friend class GrGLPathRendering; // For accessing setTextureUnit. |
| 457 }; | 457 }; |
| 458 | 458 |
| 459 #endif | 459 #endif |
| OLD | NEW |