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