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

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

Issue 1323823003: Remove GrGpuTraceMarker hooks until we rethink the design (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: compiler warning 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/GrGpu.cpp ('k') | src/gpu/GrTracing.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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 bool createStencilAttachmentForRenderTarget(GrRenderTarget*, int width, int height) override { 259 bool createStencilAttachmentForRenderTarget(GrRenderTarget*, int width, int height) override {
260 return false; 260 return false;
261 } 261 }
262 262
263 bool attachStencilAttachmentToRenderTarget(GrStencilAttachment*, GrRenderTar get*) override { 263 bool attachStencilAttachmentToRenderTarget(GrStencilAttachment*, GrRenderTar get*) override {
264 return false; 264 return false;
265 } 265 }
266 266
267 void clearStencil(GrRenderTarget* target) override {} 267 void clearStencil(GrRenderTarget* target) override {}
268 268
269 void didAddGpuTraceMarker() override {}
270
271 void didRemoveGpuTraceMarker() override {}
272
273 GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h, 269 GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h,
274 GrPixelConfig config) const override { 270 GrPixelConfig config) const override {
275 return 0; 271 return 0;
276 } 272 }
277 bool isTestingOnlyBackendTexture(GrBackendObject id) const override { return false; } 273 bool isTestingOnlyBackendTexture(GrBackendObject id) const override { return false; }
278 void deleteTestingOnlyBackendTexture(GrBackendObject id) const override {} 274 void deleteTestingOnlyBackendTexture(GrBackendObject id) const override {}
279 275
280 typedef GrGpu INHERITED; 276 typedef GrGpu INHERITED;
281 }; 277 };
282 278
(...skipping 10 matching lines...) Expand all
293 SkASSERT(nullptr == fGpu); 289 SkASSERT(nullptr == fGpu);
294 fGpu = new MockGpu(this, options); 290 fGpu = new MockGpu(this, options);
295 SkASSERT(fGpu); 291 SkASSERT(fGpu);
296 this->initCommon(); 292 this->initCommon();
297 293
298 // We delete these because we want to test the cache starting with zero reso urces. Also, none of 294 // We delete these because we want to test the cache starting with zero reso urces. Also, none of
299 // these objects are required for any of tests that use this context. TODO: make stop allocating 295 // these objects are required for any of tests that use this context. TODO: make stop allocating
300 // resources in the buffer pools. 296 // resources in the buffer pools.
301 fDrawingMgr.abandon(); 297 fDrawingMgr.abandon();
302 } 298 }
OLDNEW
« no previous file with comments | « src/gpu/GrGpu.cpp ('k') | src/gpu/GrTracing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698