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

Side by Side Diff: tests/TestConfigParsing.cpp

Issue 2177193004: Always supply a color space (sRGB for now) with F16 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix uploading of F16 textures with color spaces Created 4 years, 4 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/SkGr.cpp ('k') | tools/flags/SkCommonFlagsConfig.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 2015 Google Inc. 2 * Copyright 2015 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 "SkCommonFlagsConfig.h" 8 #include "SkCommonFlagsConfig.h"
9 #include "SkColorSpace.h" 9 #include "SkColorSpace.h"
10 #include "Test.h" 10 #include "Test.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 REPORTER_ASSERT(reporter, configs[14]->asConfigGpu()->getUseDIText()); 114 REPORTER_ASSERT(reporter, configs[14]->asConfigGpu()->getUseDIText());
115 REPORTER_ASSERT(reporter, configs[15]->asConfigGpu()->getSamples() == 4); 115 REPORTER_ASSERT(reporter, configs[15]->asConfigGpu()->getSamples() == 4);
116 REPORTER_ASSERT(reporter, configs[15]->asConfigGpu()->getUseNVPR()); 116 REPORTER_ASSERT(reporter, configs[15]->asConfigGpu()->getUseNVPR());
117 REPORTER_ASSERT(reporter, configs[15]->asConfigGpu()->getUseDIText()); 117 REPORTER_ASSERT(reporter, configs[15]->asConfigGpu()->getUseDIText());
118 REPORTER_ASSERT(reporter, !configs[16]->asConfigGpu()); 118 REPORTER_ASSERT(reporter, !configs[16]->asConfigGpu());
119 REPORTER_ASSERT(reporter, !configs[17]->asConfigGpu()); 119 REPORTER_ASSERT(reporter, !configs[17]->asConfigGpu());
120 REPORTER_ASSERT(reporter, !configs[18]->asConfigGpu()); 120 REPORTER_ASSERT(reporter, !configs[18]->asConfigGpu());
121 REPORTER_ASSERT(reporter, !configs[19]->asConfigGpu()); 121 REPORTER_ASSERT(reporter, !configs[19]->asConfigGpu());
122 REPORTER_ASSERT(reporter, !configs[24]->asConfigGpu()); 122 REPORTER_ASSERT(reporter, !configs[24]->asConfigGpu());
123 REPORTER_ASSERT(reporter, configs[25]->asConfigGpu()->getColorType() == kRGB A_F16_SkColorType); 123 REPORTER_ASSERT(reporter, configs[25]->asConfigGpu()->getColorType() == kRGB A_F16_SkColorType);
124 REPORTER_ASSERT(reporter, configs[25]->asConfigGpu()->getColorSpace() == nul lptr); 124 REPORTER_ASSERT(reporter, configs[25]->asConfigGpu()->getColorSpace() == srg bColorSpace.get());
125 REPORTER_ASSERT(reporter, configs[26]->asConfigGpu()->getColorType() == kN32 _SkColorType); 125 REPORTER_ASSERT(reporter, configs[26]->asConfigGpu()->getColorType() == kN32 _SkColorType);
126 REPORTER_ASSERT(reporter, configs[26]->asConfigGpu()->getColorSpace() == srg bColorSpace.get()); 126 REPORTER_ASSERT(reporter, configs[26]->asConfigGpu()->getColorSpace() == srg bColorSpace.get());
127 127
128 #if SK_ANGLE 128 #if SK_ANGLE
129 #ifdef SK_BUILD_FOR_WIN 129 #ifdef SK_BUILD_FOR_WIN
130 REPORTER_ASSERT(reporter, configs[20]->asConfigGpu()); 130 REPORTER_ASSERT(reporter, configs[20]->asConfigGpu());
131 #else 131 #else
132 REPORTER_ASSERT(reporter, !configs[20]->asConfigGpu()); 132 REPORTER_ASSERT(reporter, !configs[20]->asConfigGpu());
133 #endif 133 #endif
134 REPORTER_ASSERT(reporter, configs[21]->asConfigGpu()); 134 REPORTER_ASSERT(reporter, configs[21]->asConfigGpu());
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 REPORTER_ASSERT(reporter, 357 REPORTER_ASSERT(reporter,
358 configs[i]->getViaParts()[j].equals(expectedConfigs[ i].vias[j])); 358 configs[i]->getViaParts()[j].equals(expectedConfigs[ i].vias[j]));
359 } 359 }
360 } 360 }
361 #if SK_SUPPORT_GPU 361 #if SK_SUPPORT_GPU
362 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()); 362 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu());
363 REPORTER_ASSERT(reporter, !configs[1]->asConfigGpu()); 363 REPORTER_ASSERT(reporter, !configs[1]->asConfigGpu());
364 REPORTER_ASSERT(reporter, !configs[2]->asConfigGpu()); 364 REPORTER_ASSERT(reporter, !configs[2]->asConfigGpu());
365 #endif 365 #endif
366 } 366 }
OLDNEW
« no previous file with comments | « src/gpu/SkGr.cpp ('k') | tools/flags/SkCommonFlagsConfig.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698