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

Side by Side Diff: tests/GpuLayerCacheTest.cpp

Issue 2104353002: Add discard support to Vulkan (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: comment Created 4 years, 5 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/GrVkRenderTarget.h ('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 2014 Google Inc. 2 * Copyright 2014 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 // Disabling this test since it is for the layer hoister which is current disabl ed.
9 // The test fails when we add a discard to a newly created render target.
10 #if 0
11
8 #if SK_SUPPORT_GPU 12 #if SK_SUPPORT_GPU
9 13
10 #include "GrContext.h" 14 #include "GrContext.h"
11 #include "GrLayerCache.h" 15 #include "GrLayerCache.h"
12 #include "GrResourceCache.h" 16 #include "GrResourceCache.h"
13 #include "SkPictureRecorder.h" 17 #include "SkPictureRecorder.h"
14 #include "Test.h" 18 #include "Test.h"
15 19
16 class TestingAccess { 20 class TestingAccess {
17 public: 21 public:
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 cache.end(); 364 cache.end();
361 365
362 #if GR_CACHE_STATS 366 #if GR_CACHE_STATS
363 resourceCache->getStats(&stats); 367 resourceCache->getStats(&stats);
364 REPORTER_ASSERT(reporter, 2 == stats.fTotal); 368 REPORTER_ASSERT(reporter, 2 == stats.fTotal);
365 REPORTER_ASSERT(reporter, 2 == stats.fNumPurgeable); 369 REPORTER_ASSERT(reporter, 2 == stats.fNumPurgeable);
366 #endif 370 #endif
367 } 371 }
368 372
369 #endif 373 #endif
374 #endif
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkRenderTarget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698