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

Side by Side Diff: tests/ResourceCacheTest.cpp

Issue 1658823002: Remove deferred clear from SkGpuDevice (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix ptr->bool warning on windows Created 4 years, 10 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 | « tests/ClearTest.cpp ('k') | tests/SurfaceTest.cpp » ('j') | 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 here to ensure SK_SUPPORT_GPU is set correctly before it is examined. 8 // Include here to ensure SK_SUPPORT_GPU is set correctly before it is examined.
9 #include "SkTypes.h" 9 #include "SkTypes.h"
10 10
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 smallMSAART0 && smallMSAART1 && 180 smallMSAART0 && smallMSAART1 &&
181 smallMSAART0->asRenderTarget() && 181 smallMSAART0->asRenderTarget() &&
182 smallMSAART1->asRenderTarget() && 182 smallMSAART1->asRenderTarget() &&
183 resourceProvider->attachStencilAttachment(smallMSAART0-> asRenderTarget()) != 183 resourceProvider->attachStencilAttachment(smallMSAART0-> asRenderTarget()) !=
184 resourceProvider->attachStencilAttachment(smallMSAART1-> asRenderTarget())); 184 resourceProvider->attachStencilAttachment(smallMSAART1-> asRenderTarget()));
185 } 185 }
186 } 186 }
187 } 187 }
188 188
189 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ResourceCacheWrappedResources, reporter, cont ext) { 189 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ResourceCacheWrappedResources, reporter, cont ext) {
190 const GrGpu* gpu = context->getGpu(); 190 GrGpu* gpu = context->getGpu();
191 // this test is only valid for GL 191 // this test is only valid for GL
192 if (!gpu || !gpu->glContextForTesting()) { 192 if (!gpu || !gpu->glContextForTesting()) {
193 return; 193 return;
194 } 194 }
195 195
196 GrBackendObject texHandles[2]; 196 GrBackendObject texHandles[2];
197 static const int kW = 100; 197 static const int kW = 100;
198 static const int kH = 100; 198 static const int kH = 100;
199 199
200 texHandles[0] = gpu->createTestingOnlyBackendTexture(nullptr, kW, kH, kRGBA_ 8888_GrPixelConfig); 200 texHandles[0] = gpu->createTestingOnlyBackendTexture(nullptr, kW, kH, kRGBA_ 8888_GrPixelConfig);
(...skipping 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after
1308 test_cache_chained_purge(reporter); 1308 test_cache_chained_purge(reporter);
1309 test_resource_size_changed(reporter); 1309 test_resource_size_changed(reporter);
1310 test_timestamp_wrap(reporter); 1310 test_timestamp_wrap(reporter);
1311 test_flush(reporter); 1311 test_flush(reporter);
1312 test_large_resource_count(reporter); 1312 test_large_resource_count(reporter);
1313 test_custom_data(reporter); 1313 test_custom_data(reporter);
1314 test_abandoned(reporter); 1314 test_abandoned(reporter);
1315 } 1315 }
1316 1316
1317 #endif 1317 #endif
OLDNEW
« no previous file with comments | « tests/ClearTest.cpp ('k') | tests/SurfaceTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698