| 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 GrGLGpu_DEFINED | 8 #ifndef GrGLGpu_DEFINED |
| 9 #define GrGLGpu_DEFINED | 9 #define GrGLGpu_DEFINED |
| 10 | 10 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 // GrGpu overrides | 119 // GrGpu overrides |
| 120 void onResetContext(uint32_t resetBits) override; | 120 void onResetContext(uint32_t resetBits) override; |
| 121 | 121 |
| 122 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc
le lifeCycle, | 122 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc
le lifeCycle, |
| 123 const void* srcData, size_t rowBytes) override; | 123 const void* srcData, size_t rowBytes) override; |
| 124 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, | 124 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, |
| 125 GrGpuResource::LifeCycle lifeCycle, | 125 GrGpuResource::LifeCycle lifeCycle, |
| 126 const void* srcData) override; | 126 const void* srcData) override; |
| 127 GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) override; | 127 GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) override; |
| 128 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) override; | 128 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) override; |
| 129 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&) override; | 129 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership
) override; |
| 130 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&)
override; | 130 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, |
| 131 GrWrapOwnership) override; |
| 131 bool createStencilAttachmentForRenderTarget(GrRenderTarget* rt, int width, i
nt height) override; | 132 bool createStencilAttachmentForRenderTarget(GrRenderTarget* rt, int width, i
nt height) override; |
| 132 bool attachStencilAttachmentToRenderTarget(GrStencilAttachment* sb, | 133 bool attachStencilAttachmentToRenderTarget(GrStencilAttachment* sb, |
| 133 GrRenderTarget* rt) override; | 134 GrRenderTarget* rt) override; |
| 134 | 135 |
| 135 void onClear(GrRenderTarget*, const SkIRect* rect, GrColor color, | 136 void onClear(GrRenderTarget*, const SkIRect* rect, GrColor color, |
| 136 bool canIgnoreRect) override; | 137 bool canIgnoreRect) override; |
| 137 | 138 |
| 138 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) override; | 139 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) override; |
| 139 | 140 |
| 140 bool onReadPixels(GrRenderTarget* target, | 141 bool onReadPixels(GrRenderTarget* target, |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 | 496 |
| 496 // we record what stencil format worked last time to hopefully exit early | 497 // we record what stencil format worked last time to hopefully exit early |
| 497 // from our loop that tries stencil formats and calls check fb status. | 498 // from our loop that tries stencil formats and calls check fb status. |
| 498 int fLastSuccessfulStencilFmtIdx; | 499 int fLastSuccessfulStencilFmtIdx; |
| 499 | 500 |
| 500 typedef GrGpu INHERITED; | 501 typedef GrGpu INHERITED; |
| 501 friend class GrGLPathRendering; // For accessing setTextureUnit. | 502 friend class GrGLPathRendering; // For accessing setTextureUnit. |
| 502 }; | 503 }; |
| 503 | 504 |
| 504 #endif | 505 #endif |
| OLD | NEW |