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

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

Issue 1275543005: Move some work from backend onClear to base class clear (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Pass references and rebase Created 5 years, 4 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/GrTargetCommands.cpp ('k') | src/gpu/gl/GrGLCaps.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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 195
196 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, 196 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&,
197 GrWrapOwnership) override { 197 GrWrapOwnership) override {
198 return NULL; 198 return NULL;
199 } 199 }
200 200
201 GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) override { r eturn NULL; } 201 GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) override { r eturn NULL; }
202 202
203 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) override { ret urn NULL; } 203 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) override { ret urn NULL; }
204 204
205 void onClear(GrRenderTarget*, const SkIRect* rect, GrColor color, 205 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override { }
206 bool canIgnoreRect) override {}
207 206
208 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli p) override {} 207 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli p) override {}
209 208
210 void onDraw(const DrawArgs&, const GrNonInstancedVertices&) override {} 209 void onDraw(const DrawArgs&, const GrNonInstancedVertices&) override {}
211 210
212 bool onReadPixels(GrSurface* surface, 211 bool onReadPixels(GrSurface* surface,
213 int left, int top, int width, int height, 212 int left, int top, int width, int height,
214 GrPixelConfig, 213 GrPixelConfig,
215 void* buffer, 214 void* buffer,
216 size_t rowBytes) override { 215 size_t rowBytes) override {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 SkASSERT(NULL == fGpu); 262 SkASSERT(NULL == fGpu);
264 fGpu = SkNEW_ARGS(MockGpu, (this, options)); 263 fGpu = SkNEW_ARGS(MockGpu, (this, options));
265 SkASSERT(fGpu); 264 SkASSERT(fGpu);
266 this->initCommon(); 265 this->initCommon();
267 266
268 // We delete these because we want to test the cache starting with zero reso urces. Also, none of 267 // We delete these because we want to test the cache starting with zero reso urces. Also, none of
269 // these objects are required for any of tests that use this context. TODO: make stop allocating 268 // these objects are required for any of tests that use this context. TODO: make stop allocating
270 // resources in the buffer pools. 269 // resources in the buffer pools.
271 fDrawingMgr.abandon(); 270 fDrawingMgr.abandon();
272 } 271 }
OLDNEW
« no previous file with comments | « src/gpu/GrTargetCommands.cpp ('k') | src/gpu/gl/GrGLCaps.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698