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

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

Issue 2182783004: Add test configs for instanced rendering (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add test configs for instanced rendering Created 4 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 | « tools/gpu/GrContextFactory.cpp ('k') | tools/nanobench_flags.json » ('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 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "GrTest.h" 8 #include "GrTest.h"
9 9
10 #include "GrBatchAtlas.h" 10 #include "GrBatchAtlas.h"
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 } 335 }
336 336
337 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes c&) override { 337 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes c&) override {
338 return nullptr; 338 return nullptr;
339 } 339 }
340 340
341 GrBuffer* onCreateBuffer(size_t, GrBufferType, GrAccessPattern, const void*) override { 341 GrBuffer* onCreateBuffer(size_t, GrBufferType, GrAccessPattern, const void*) override {
342 return nullptr; 342 return nullptr;
343 } 343 }
344 344
345 gr_instanced::InstancedRendering* onCreateInstancedRendering() override { re turn nullptr; }
346
345 bool onReadPixels(GrSurface* surface, 347 bool onReadPixels(GrSurface* surface,
346 int left, int top, int width, int height, 348 int left, int top, int width, int height,
347 GrPixelConfig, 349 GrPixelConfig,
348 void* buffer, 350 void* buffer,
349 size_t rowBytes) override { 351 size_t rowBytes) override {
350 return false; 352 return false;
351 } 353 }
352 354
353 bool onWritePixels(GrSurface* surface, 355 bool onWritePixels(GrSurface* surface,
354 int left, int top, int width, int height, 356 int left, int top, int width, int height,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 SkASSERT(nullptr == fGpu); 398 SkASSERT(nullptr == fGpu);
397 fGpu = new MockGpu(this, options); 399 fGpu = new MockGpu(this, options);
398 SkASSERT(fGpu); 400 SkASSERT(fGpu);
399 this->initCommon(options); 401 this->initCommon(options);
400 402
401 // We delete these because we want to test the cache starting with zero reso urces. Also, none of 403 // We delete these because we want to test the cache starting with zero reso urces. Also, none of
402 // these objects are required for any of tests that use this context. TODO: make stop allocating 404 // these objects are required for any of tests that use this context. TODO: make stop allocating
403 // resources in the buffer pools. 405 // resources in the buffer pools.
404 fDrawingManager->abandon(); 406 fDrawingManager->abandon();
405 } 407 }
OLDNEW
« no previous file with comments | « tools/gpu/GrContextFactory.cpp ('k') | tools/nanobench_flags.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698