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

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

Issue 2038583002: Add GpuCommandBuffer support. (Closed) Base URL: https://skia.googlesource.com/skia.git@secondaryCB
Patch Set: Created 4 years, 6 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/GrVkResourceProvider.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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 const GrStencilSettings&, 294 const GrStencilSettings&,
295 int* effectiveSampleCnt, 295 int* effectiveSampleCnt,
296 SkAutoTDeleteArray<SkPoint>*) override { 296 SkAutoTDeleteArray<SkPoint>*) override {
297 *effectiveSampleCnt = rt->desc().fSampleCnt; 297 *effectiveSampleCnt = rt->desc().fSampleCnt;
298 } 298 }
299 299
300 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const override { 300 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const override {
301 return false; 301 return false;
302 } 302 }
303 303
304 GrGpuCommandBuffer* createCommandBuffer(const GrRenderTarget& target,
305 GrGpuCommandBuffer::LoadAndStoreOp c olorOp,
306 GrColor colorClear,
307 GrGpuCommandBuffer::LoadAndStoreOp s tencilOp,
308 GrColor stencilClear) override {
309 return nullptr;
310 }
311
304 void drawDebugWireRect(GrRenderTarget*, const SkIRect&, GrColor) override {} ; 312 void drawDebugWireRect(GrRenderTarget*, const SkIRect&, GrColor) override {} ;
305 313
306 private: 314 private:
307 void onResetContext(uint32_t resetBits) override {} 315 void onResetContext(uint32_t resetBits) override {}
308 316
309 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {} 317 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {}
310 318
311 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted, 319 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted,
312 const SkTArray<GrMipLevel>& texels) override { 320 const SkTArray<GrMipLevel>& texels) override {
313 return nullptr; 321 return nullptr;
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 SkASSERT(nullptr == fGpu); 405 SkASSERT(nullptr == fGpu);
398 fGpu = new MockGpu(this, options); 406 fGpu = new MockGpu(this, options);
399 SkASSERT(fGpu); 407 SkASSERT(fGpu);
400 this->initCommon(options); 408 this->initCommon(options);
401 409
402 // We delete these because we want to test the cache starting with zero reso urces. Also, none of 410 // We delete these because we want to test the cache starting with zero reso urces. Also, none of
403 // these objects are required for any of tests that use this context. TODO: make stop allocating 411 // these objects are required for any of tests that use this context. TODO: make stop allocating
404 // resources in the buffer pools. 412 // resources in the buffer pools.
405 fDrawingManager->abandon(); 413 fDrawingManager->abandon();
406 } 414 }
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkResourceProvider.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698