Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1159)

Side by Side Diff: src/gpu/GrTest.cpp

Issue 939093002: Recycle stencil buffers across render targets. (Closed) Base URL: https://skia.googlesource.com/skia.git@keychange
Patch Set: Address comments Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/GrStencilBuffer.cpp ('k') | src/gpu/gl/GrGLGpu.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "GrTest.h" 9 #include "GrTest.h"
10 10
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 222
223 bool onWriteTexturePixels(GrTexture* texture, 223 bool onWriteTexturePixels(GrTexture* texture,
224 int left, int top, int width, int height, 224 int left, int top, int width, int height,
225 GrPixelConfig config, const void* buffer, 225 GrPixelConfig config, const void* buffer,
226 size_t rowBytes) SK_OVERRIDE { 226 size_t rowBytes) SK_OVERRIDE {
227 return false; 227 return false;
228 } 228 }
229 229
230 void onResolveRenderTarget(GrRenderTarget* target) SK_OVERRIDE { return; } 230 void onResolveRenderTarget(GrRenderTarget* target) SK_OVERRIDE { return; }
231 231
232 bool createStencilBufferForRenderTarget(GrRenderTarget*, bool budgeted, 232 bool createStencilBufferForRenderTarget(GrRenderTarget*, int width, int heig ht) SK_OVERRIDE {
233 int width, int height) SK_OVERRIDE {
234 return false; 233 return false;
235 } 234 }
236 235
237 bool attachStencilBufferToRenderTarget(GrStencilBuffer*, GrRenderTarget*) SK _OVERRIDE { 236 bool attachStencilBufferToRenderTarget(GrStencilBuffer*, GrRenderTarget*) SK _OVERRIDE {
238 return false; 237 return false;
239 } 238 }
240 239
241 void clearStencil(GrRenderTarget* target) SK_OVERRIDE {} 240 void clearStencil(GrRenderTarget* target) SK_OVERRIDE {}
242 241
243 void didAddGpuTraceMarker() SK_OVERRIDE {} 242 void didAddGpuTraceMarker() SK_OVERRIDE {}
(...skipping 20 matching lines...) Expand all
264 // these objects are required for any of tests that use this context. TODO: make stop allocating 263 // these objects are required for any of tests that use this context. TODO: make stop allocating
265 // resources in the buffer pools. 264 // resources in the buffer pools.
266 SkDELETE(fDrawBuffer); 265 SkDELETE(fDrawBuffer);
267 SkDELETE(fDrawBufferVBAllocPool); 266 SkDELETE(fDrawBufferVBAllocPool);
268 SkDELETE(fDrawBufferIBAllocPool); 267 SkDELETE(fDrawBufferIBAllocPool);
269 268
270 fDrawBuffer = NULL; 269 fDrawBuffer = NULL;
271 fDrawBufferVBAllocPool = NULL; 270 fDrawBufferVBAllocPool = NULL;
272 fDrawBufferIBAllocPool = NULL; 271 fDrawBufferIBAllocPool = NULL;
273 } 272 }
OLDNEW
« no previous file with comments | « src/gpu/GrStencilBuffer.cpp ('k') | src/gpu/gl/GrGLGpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698