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

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

Issue 1494473005: Add option to draw wireframe batch bounds (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: init vbo id to 0 Created 5 years 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.h ('k') | src/gpu/batches/GrBatch.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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 277
278 bool onCopySurface(GrSurface* dst, 278 bool onCopySurface(GrSurface* dst,
279 GrSurface* src, 279 GrSurface* src,
280 const SkIRect& srcRect, 280 const SkIRect& srcRect,
281 const SkIPoint& dstPoint) override { return false; }; 281 const SkIPoint& dstPoint) override { return false; };
282 282
283 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const override { 283 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const override {
284 return false; 284 return false;
285 } 285 }
286 286
287 void drawDebugWireRect(GrRenderTarget*, const SkIRect&, GrColor) override {} ;
288
287 private: 289 private:
288 void onResetContext(uint32_t resetBits) override {} 290 void onResetContext(uint32_t resetBits) override {}
289 291
290 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {} 292 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {}
291 293
292 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc le lifeCycle, 294 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc le lifeCycle,
293 const void* srcData, size_t rowBytes) override { 295 const void* srcData, size_t rowBytes) override {
294 return nullptr; 296 return nullptr;
295 } 297 }
296 298
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 SkASSERT(nullptr == fGpu); 369 SkASSERT(nullptr == fGpu);
368 fGpu = new MockGpu(this, options); 370 fGpu = new MockGpu(this, options);
369 SkASSERT(fGpu); 371 SkASSERT(fGpu);
370 this->initCommon(options); 372 this->initCommon(options);
371 373
372 // We delete these because we want to test the cache starting with zero reso urces. Also, none of 374 // We delete these because we want to test the cache starting with zero reso urces. Also, none of
373 // these objects are required for any of tests that use this context. TODO: make stop allocating 375 // these objects are required for any of tests that use this context. TODO: make stop allocating
374 // resources in the buffer pools. 376 // resources in the buffer pools.
375 fDrawingManager->abandon(); 377 fDrawingManager->abandon();
376 } 378 }
OLDNEW
« no previous file with comments | « src/gpu/GrGpu.h ('k') | src/gpu/batches/GrBatch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698