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

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

Issue 2467593002: Move memoization of multisample specs id to GrRenderTarget (Closed)
Patch Set: Move memoization of multisample specs id to GrRenderTarget Created 4 years, 1 month 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 296
297 bool onGetWritePixelsInfo(GrSurface* dstSurface, int width, int height, 297 bool onGetWritePixelsInfo(GrSurface* dstSurface, int width, int height,
298 GrPixelConfig srcConfig, DrawPreference*, 298 GrPixelConfig srcConfig, DrawPreference*,
299 WritePixelTempDrawInfo*) override { return false; } 299 WritePixelTempDrawInfo*) override { return false; }
300 300
301 bool onCopySurface(GrSurface* dst, 301 bool onCopySurface(GrSurface* dst,
302 GrSurface* src, 302 GrSurface* src,
303 const SkIRect& srcRect, 303 const SkIRect& srcRect,
304 const SkIPoint& dstPoint) override { return false; } 304 const SkIPoint& dstPoint) override { return false; }
305 305
306 void onGetMultisampleSpecs(GrRenderTarget* rt, const GrStencilSettings&, 306 void onQueryMultisampleSpecs(GrRenderTarget* rt, const GrStencilSettings&,
307 int* effectiveSampleCnt, SamplePattern*) override { 307 int* effectiveSampleCnt, SamplePattern*) overri de {
308 *effectiveSampleCnt = rt->desc().fSampleCnt; 308 *effectiveSampleCnt = rt->desc().fSampleCnt;
309 } 309 }
310 310
311 bool initDescForDstCopy(const GrRenderTarget* src, GrSurfaceDesc* desc) cons t override { 311 bool initDescForDstCopy(const GrRenderTarget* src, GrSurfaceDesc* desc) cons t override {
312 return false; 312 return false;
313 } 313 }
314 314
315 GrGpuCommandBuffer* createCommandBuffer(GrRenderTarget* target, 315 GrGpuCommandBuffer* createCommandBuffer(GrRenderTarget* target,
316 const GrGpuCommandBuffer::LoadAndSto reInfo&, 316 const GrGpuCommandBuffer::LoadAndSto reInfo&,
317 const GrGpuCommandBuffer::LoadAndSto reInfo&) override { 317 const GrGpuCommandBuffer::LoadAndSto reInfo&) override {
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
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