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

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

Issue 1904723003: Revert of Use transfer buffer for BatchAtlas texture copies (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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/vk/GrVkGpu.cpp ('k') | no next file » | 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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 size_t rowBytes) override { 365 size_t rowBytes) override {
366 return false; 366 return false;
367 } 367 }
368 368
369 bool onWritePixels(GrSurface* surface, 369 bool onWritePixels(GrSurface* surface,
370 int left, int top, int width, int height, 370 int left, int top, int width, int height,
371 GrPixelConfig config, const SkTArray<GrMipLevel>& texels) override { 371 GrPixelConfig config, const SkTArray<GrMipLevel>& texels) override {
372 return false; 372 return false;
373 } 373 }
374 374
375 bool onTransferPixels(GrTexture* texture, 375 bool onTransferPixels(GrSurface* surface,
376 int left, int top, int width, int height, 376 int left, int top, int width, int height,
377 GrPixelConfig config, GrBuffer* transferBuffer, 377 GrPixelConfig config, GrBuffer* transferBuffer,
378 size_t offset, size_t rowBytes) override { 378 size_t offset, size_t rowBytes) override {
379 return false; 379 return false;
380 } 380 }
381 381
382 void onResolveRenderTarget(GrRenderTarget* target) override { return; } 382 void onResolveRenderTarget(GrRenderTarget* target) override { return; }
383 383
384 GrStencilAttachment* createStencilAttachmentForRenderTarget(const GrRenderTa rget*, 384 GrStencilAttachment* createStencilAttachmentForRenderTarget(const GrRenderTa rget*,
385 int width, 385 int width,
(...skipping 26 matching lines...) Expand all
412 SkASSERT(nullptr == fGpu); 412 SkASSERT(nullptr == fGpu);
413 fGpu = new MockGpu(this, options); 413 fGpu = new MockGpu(this, options);
414 SkASSERT(fGpu); 414 SkASSERT(fGpu);
415 this->initCommon(options); 415 this->initCommon(options);
416 416
417 // We delete these because we want to test the cache starting with zero reso urces. Also, none of 417 // We delete these because we want to test the cache starting with zero reso urces. Also, none of
418 // these objects are required for any of tests that use this context. TODO: make stop allocating 418 // these objects are required for any of tests that use this context. TODO: make stop allocating
419 // resources in the buffer pools. 419 // resources in the buffer pools.
420 fDrawingManager->abandon(); 420 fDrawingManager->abandon();
421 } 421 }
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkGpu.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698