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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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, |
136 bool canIgnoreRect) override; | 136 bool canIgnoreRect) override; |
137 | 137 |
138 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) override; | 138 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) override; |
139 | 139 |
140 bool onReadPixels(GrRenderTarget* target, | 140 bool onReadPixels(GrSurface*, |
141 int left, int top, | 141 int left, int top, |
142 int width, int height, | 142 int width, int height, |
143 GrPixelConfig, | 143 GrPixelConfig, |
144 void* buffer, | 144 void* buffer, |
145 size_t rowBytes) override; | 145 size_t rowBytes) override; |
146 | 146 |
147 bool onWriteTexturePixels(GrTexture* texture, | 147 bool onWritePixels(GrSurface*, |
148 int left, int top, int width, int height, | 148 int left, int top, int width, int height, |
149 GrPixelConfig config, const void* buffer, | 149 GrPixelConfig config, const void* buffer, |
150 size_t rowBytes) override; | 150 size_t rowBytes) override; |
151 | 151 |
152 void onResolveRenderTarget(GrRenderTarget* target) override; | 152 void onResolveRenderTarget(GrRenderTarget* target) override; |
153 | 153 |
154 void onDraw(const DrawArgs&, const GrNonInstancedVertices&) override; | 154 void onDraw(const DrawArgs&, const GrNonInstancedVertices&) override; |
155 | 155 |
156 void clearStencil(GrRenderTarget*) override; | 156 void clearStencil(GrRenderTarget*) override; |
157 | 157 |
158 // GrDrawTarget overrides | 158 // GrDrawTarget overrides |
159 void didAddGpuTraceMarker() override; | 159 void didAddGpuTraceMarker() override; |
160 void didRemoveGpuTraceMarker() override; | 160 void didRemoveGpuTraceMarker() override; |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 | 495 |
496 // 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 |
497 // 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. |
498 int fLastSuccessfulStencilFmtIdx; | 498 int fLastSuccessfulStencilFmtIdx; |
499 | 499 |
500 typedef GrGpu INHERITED; | 500 typedef GrGpu INHERITED; |
501 friend class GrGLPathRendering; // For accessing setTextureUnit. | 501 friend class GrGLPathRendering; // For accessing setTextureUnit. |
502 }; | 502 }; |
503 | 503 |
504 #endif | 504 #endif |
OLD | NEW |