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

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

Issue 2294533002: Add some copy support for vulkan msaa (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update initDesc name Created 4 years, 3 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/GrVkTextureRenderTarget.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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 bool onCopySurface(GrSurface* dst, 299 bool onCopySurface(GrSurface* dst,
300 GrSurface* src, 300 GrSurface* src,
301 const SkIRect& srcRect, 301 const SkIRect& srcRect,
302 const SkIPoint& dstPoint) override { return false; }; 302 const SkIPoint& dstPoint) override { return false; };
303 303
304 void onGetMultisampleSpecs(GrRenderTarget* rt, const GrStencilSettings&, 304 void onGetMultisampleSpecs(GrRenderTarget* rt, const GrStencilSettings&,
305 int* effectiveSampleCnt, SamplePattern*) override { 305 int* effectiveSampleCnt, SamplePattern*) override {
306 *effectiveSampleCnt = rt->desc().fSampleCnt; 306 *effectiveSampleCnt = rt->desc().fSampleCnt;
307 } 307 }
308 308
309 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const override { 309 bool initDescForDstCopy(const GrRenderTarget* src, GrSurfaceDesc* desc) cons t override {
310 return false; 310 return false;
311 } 311 }
312 312
313 GrGpuCommandBuffer* createCommandBuffer(GrRenderTarget* target, 313 GrGpuCommandBuffer* createCommandBuffer(GrRenderTarget* target,
314 const GrGpuCommandBuffer::LoadAndSto reInfo&, 314 const GrGpuCommandBuffer::LoadAndSto reInfo&,
315 const GrGpuCommandBuffer::LoadAndSto reInfo&) override { 315 const GrGpuCommandBuffer::LoadAndSto reInfo&) override {
316 return nullptr; 316 return nullptr;
317 } 317 }
318 318
319 void drawDebugWireRect(GrRenderTarget*, const SkIRect&, GrColor) override {} ; 319 void drawDebugWireRect(GrRenderTarget*, const SkIRect&, GrColor) override {} ;
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 SkASSERT(nullptr == fGpu); 405 SkASSERT(nullptr == fGpu);
406 fGpu = new MockGpu(this, options); 406 fGpu = new MockGpu(this, options);
407 SkASSERT(fGpu); 407 SkASSERT(fGpu);
408 this->initCommon(options); 408 this->initCommon(options);
409 409
410 // 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
411 // 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
412 // resources in the buffer pools. 412 // resources in the buffer pools.
413 fDrawingManager->abandon(); 413 fDrawingManager->abandon();
414 } 414 }
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkTextureRenderTarget.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698