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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 void onResetContext(uint32_t resetBits) SK_OVERRIDE; | 116 void onResetContext(uint32_t resetBits) SK_OVERRIDE; |
117 | 117 |
118 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, bool budgeted, const v
oid* srcData, | 118 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, bool budgeted, const v
oid* srcData, |
119 size_t rowBytes) SK_OVERRIDE; | 119 size_t rowBytes) SK_OVERRIDE; |
120 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, bool budgete
d, | 120 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, bool budgete
d, |
121 const void* srcData) SK_OVERRIDE; | 121 const void* srcData) SK_OVERRIDE; |
122 GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) SK_OVERRIDE; | 122 GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) SK_OVERRIDE; |
123 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) SK_OVERRIDE; | 123 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) SK_OVERRIDE; |
124 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&) SK_OVERRIDE; | 124 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&) SK_OVERRIDE; |
125 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&)
SK_OVERRIDE; | 125 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&)
SK_OVERRIDE; |
126 bool createStencilBufferForRenderTarget(GrRenderTarget* rt, | 126 bool createStencilBufferForRenderTarget(GrRenderTarget* rt, bool budgeted, |
127 int width, int height) SK_OVERRIDE; | 127 int width, int height) SK_OVERRIDE; |
128 bool attachStencilBufferToRenderTarget(GrStencilBuffer* sb, GrRenderTarget*
rt) SK_OVERRIDE; | 128 bool attachStencilBufferToRenderTarget(GrStencilBuffer* sb, GrRenderTarget*
rt) SK_OVERRIDE; |
129 | 129 |
130 void onClear(GrRenderTarget*, const SkIRect* rect, GrColor color, | 130 void onClear(GrRenderTarget*, const SkIRect* rect, GrColor color, |
131 bool canIgnoreRect) SK_OVERRIDE; | 131 bool canIgnoreRect) SK_OVERRIDE; |
132 | 132 |
133 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) SK_OVERRIDE; | 133 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) SK_OVERRIDE; |
134 | 134 |
135 bool onReadPixels(GrRenderTarget* target, | 135 bool onReadPixels(GrRenderTarget* target, |
136 int left, int top, | 136 int left, int top, |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 | 454 |
455 // we record what stencil format worked last time to hopefully exit early | 455 // we record what stencil format worked last time to hopefully exit early |
456 // from our loop that tries stencil formats and calls check fb status. | 456 // from our loop that tries stencil formats and calls check fb status. |
457 int fLastSuccessfulStencilFmtIdx; | 457 int fLastSuccessfulStencilFmtIdx; |
458 | 458 |
459 typedef GrGpu INHERITED; | 459 typedef GrGpu INHERITED; |
460 friend class GrGLPathRendering; // For accessing setTextureUnit. | 460 friend class GrGLPathRendering; // For accessing setTextureUnit. |
461 }; | 461 }; |
462 | 462 |
463 #endif | 463 #endif |
OLD | NEW |