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

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

Issue 1490473003: Add transfer buffer support. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Some clean up 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
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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 257
258 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, 258 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&,
259 GrWrapOwnership) override { 259 GrWrapOwnership) override {
260 return nullptr; 260 return nullptr;
261 } 261 }
262 262
263 GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) override { r eturn nullptr; } 263 GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) override { r eturn nullptr; }
264 264
265 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) override { ret urn nullptr; } 265 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) override { ret urn nullptr; }
266 266
267 GrTransferBuffer* onCreateTransferBuffer(size_t size, bool toGpu) override { return nullptr; }
268
267 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override { } 269 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override { }
268 270
269 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli p) override {} 271 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli p) override {}
270 272
271 void onDraw(const DrawArgs&, const GrNonInstancedVertices&) override {} 273 void onDraw(const DrawArgs&, const GrNonInstancedVertices&) override {}
272 274
273 bool onReadPixels(GrSurface* surface, 275 bool onReadPixels(GrSurface* surface,
274 int left, int top, int width, int height, 276 int left, int top, int width, int height,
275 GrPixelConfig, 277 GrPixelConfig,
276 void* buffer, 278 void* buffer,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 SkASSERT(nullptr == fGpu); 320 SkASSERT(nullptr == fGpu);
319 fGpu = new MockGpu(this, options); 321 fGpu = new MockGpu(this, options);
320 SkASSERT(fGpu); 322 SkASSERT(fGpu);
321 this->initCommon(options); 323 this->initCommon(options);
322 324
323 // We delete these because we want to test the cache starting with zero reso urces. Also, none of 325 // We delete these because we want to test the cache starting with zero reso urces. Also, none of
324 // these objects are required for any of tests that use this context. TODO: make stop allocating 326 // these objects are required for any of tests that use this context. TODO: make stop allocating
325 // resources in the buffer pools. 327 // resources in the buffer pools.
326 fDrawingManager->abandon(); 328 fDrawingManager->abandon();
327 } 329 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698