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

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

Issue 1332923003: Remove batchtracker (Closed) Base URL: https://skia.googlesource.com/skia.git@latecreatepathprocessor
Patch Set: tweaks Created 5 years, 3 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/GrProcOptInfo.cpp ('k') | src/gpu/batches/GrAAConvexPathRenderer.cpp » ('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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 ~MockGpu() override {} 184 ~MockGpu() override {}
185 185
186 bool onGetReadPixelsInfo(GrSurface* srcSurface, int readWidth, int readHeigh t, size_t rowBytes, 186 bool onGetReadPixelsInfo(GrSurface* srcSurface, int readWidth, int readHeigh t, size_t rowBytes,
187 GrPixelConfig readConfig, DrawPreference*, 187 GrPixelConfig readConfig, DrawPreference*,
188 ReadPixelTempDrawInfo*) override { return false; } 188 ReadPixelTempDrawInfo*) override { return false; }
189 189
190 bool onGetWritePixelsInfo(GrSurface* dstSurface, int width, int height, size _t rowBytes, 190 bool onGetWritePixelsInfo(GrSurface* dstSurface, int width, int height, size _t rowBytes,
191 GrPixelConfig srcConfig, DrawPreference*, 191 GrPixelConfig srcConfig, DrawPreference*,
192 WritePixelTempDrawInfo*) override { return false; } 192 WritePixelTempDrawInfo*) override { return false; }
193 193
194 void buildProgramDesc(GrProgramDesc*,const GrPrimitiveProcessor&, 194 void buildProgramDesc(GrProgramDesc*, const GrPrimitiveProcessor&,
195 const GrPipeline&, 195 const GrPipeline&) const override {}
196 const GrBatchTracker&) const override {}
197 196
198 void discard(GrRenderTarget*) override {} 197 void discard(GrRenderTarget*) override {}
199 198
200 bool onCopySurface(GrSurface* dst, 199 bool onCopySurface(GrSurface* dst,
201 GrSurface* src, 200 GrSurface* src,
202 const SkIRect& srcRect, 201 const SkIRect& srcRect,
203 const SkIPoint& dstPoint) override { return false; }; 202 const SkIPoint& dstPoint) override { return false; };
204 203
205 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const override { 204 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const override {
206 return false; 205 return false;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 SkASSERT(nullptr == fGpu); 288 SkASSERT(nullptr == fGpu);
290 fGpu = new MockGpu(this, options); 289 fGpu = new MockGpu(this, options);
291 SkASSERT(fGpu); 290 SkASSERT(fGpu);
292 this->initCommon(); 291 this->initCommon();
293 292
294 // We delete these because we want to test the cache starting with zero reso urces. Also, none of 293 // We delete these because we want to test the cache starting with zero reso urces. Also, none of
295 // these objects are required for any of tests that use this context. TODO: make stop allocating 294 // these objects are required for any of tests that use this context. TODO: make stop allocating
296 // resources in the buffer pools. 295 // resources in the buffer pools.
297 fDrawingMgr.abandon(); 296 fDrawingMgr.abandon();
298 } 297 }
OLDNEW
« no previous file with comments | « src/gpu/GrProcOptInfo.cpp ('k') | src/gpu/batches/GrAAConvexPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698