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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 const void* srcData) override; | 125 const void* srcData) override; |
126 GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) override; | 126 GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) override; |
127 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) override; | 127 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) override; |
128 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership
) override; | 128 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership
) override; |
129 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, | 129 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, |
130 GrWrapOwnership) override; | 130 GrWrapOwnership) override; |
131 bool createStencilAttachmentForRenderTarget(GrRenderTarget* rt, int width, i
nt height) override; | 131 bool createStencilAttachmentForRenderTarget(GrRenderTarget* rt, int width, i
nt height) override; |
132 bool attachStencilAttachmentToRenderTarget(GrStencilAttachment* sb, | 132 bool attachStencilAttachmentToRenderTarget(GrStencilAttachment* sb, |
133 GrRenderTarget* rt) override; | 133 GrRenderTarget* rt) override; |
134 | 134 |
135 void onClear(GrRenderTarget*, const SkIRect* rect, GrColor color, | 135 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override; |
136 bool canIgnoreRect) override; | |
137 | 136 |
138 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) override; | 137 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) override; |
139 | 138 |
140 bool onReadPixels(GrSurface*, | 139 bool onReadPixels(GrSurface*, |
141 int left, int top, | 140 int left, int top, |
142 int width, int height, | 141 int width, int height, |
143 GrPixelConfig, | 142 GrPixelConfig, |
144 void* buffer, | 143 void* buffer, |
145 size_t rowBytes) override; | 144 size_t rowBytes) override; |
146 | 145 |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 | 495 |
497 // we record what stencil format worked last time to hopefully exit early | 496 // we record what stencil format worked last time to hopefully exit early |
498 // from our loop that tries stencil formats and calls check fb status. | 497 // from our loop that tries stencil formats and calls check fb status. |
499 int fLastSuccessfulStencilFmtIdx; | 498 int fLastSuccessfulStencilFmtIdx; |
500 | 499 |
501 typedef GrGpu INHERITED; | 500 typedef GrGpu INHERITED; |
502 friend class GrGLPathRendering; // For accessing setTextureUnit. | 501 friend class GrGLPathRendering; // For accessing setTextureUnit. |
503 }; | 502 }; |
504 | 503 |
505 #endif | 504 #endif |
OLD | NEW |