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

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

Issue 1496843003: Revert of Add transfer buffer support. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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.cpp ('k') | src/gpu/GrTransferBuffer.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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 280
281 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, 281 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&,
282 GrWrapOwnership) override { 282 GrWrapOwnership) override {
283 return nullptr; 283 return nullptr;
284 } 284 }
285 285
286 GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) override { r eturn nullptr; } 286 GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) override { r eturn nullptr; }
287 287
288 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) override { ret urn nullptr; } 288 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) override { ret urn nullptr; }
289 289
290 GrTransferBuffer* onCreateTransferBuffer(size_t, TransferType) override { re turn nullptr; }
291
292 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override { } 290 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override { }
293 291
294 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli p) override {} 292 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli p) override {}
295 293
296 void onDraw(const DrawArgs&, const GrNonInstancedVertices&) override {} 294 void onDraw(const DrawArgs&, const GrNonInstancedVertices&) override {}
297 295
298 bool onReadPixels(GrSurface* surface, 296 bool onReadPixels(GrSurface* surface,
299 int left, int top, int width, int height, 297 int left, int top, int width, int height,
300 GrPixelConfig, 298 GrPixelConfig,
301 void* buffer, 299 void* buffer,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 SkASSERT(nullptr == fGpu); 341 SkASSERT(nullptr == fGpu);
344 fGpu = new MockGpu(this, options); 342 fGpu = new MockGpu(this, options);
345 SkASSERT(fGpu); 343 SkASSERT(fGpu);
346 this->initCommon(options); 344 this->initCommon(options);
347 345
348 // We delete these because we want to test the cache starting with zero reso urces. Also, none of 346 // We delete these because we want to test the cache starting with zero reso urces. Also, none of
349 // these objects are required for any of tests that use this context. TODO: make stop allocating 347 // these objects are required for any of tests that use this context. TODO: make stop allocating
350 // resources in the buffer pools. 348 // resources in the buffer pools.
351 fDrawingManager->abandon(); 349 fDrawingManager->abandon();
352 } 350 }
OLDNEW
« no previous file with comments | « src/gpu/GrGpu.cpp ('k') | src/gpu/GrTransferBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698