OLD | NEW |
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 /* | 8 /* |
9 * This is a straightforward test of floating point textures, which are | 9 * This is a straightforward test of floating point textures, which are |
10 * supported on some platforms. As of right now, this test only supports | 10 * supported on some platforms. As of right now, this test only supports |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 | 120 |
121 // 16-bit floating point textures are NOT supported everywhere | 121 // 16-bit floating point textures are NOT supported everywhere |
122 if (NULL == fpTexture) { | 122 if (NULL == fpTexture) { |
123 continue; | 123 continue; |
124 } | 124 } |
125 | 125 |
126 // write square | 126 // write square |
127 fpTexture->writePixels(0, 0, DEV_W, DEV_H, desc.fConfig, controlPixe
lData, 0); | 127 fpTexture->writePixels(0, 0, DEV_W, DEV_H, desc.fConfig, controlPixe
lData, 0); |
128 fpTexture->readPixels(0, 0, DEV_W, DEV_H, desc.fConfig, readBuffer,
0); | 128 fpTexture->readPixels(0, 0, DEV_W, DEV_H, desc.fConfig, readBuffer,
0); |
129 for (int j = 0; j < HALF_CONTROL_ARRAY_SIZE; ++j) { | 129 for (int j = 0; j < HALF_CONTROL_ARRAY_SIZE; ++j) { |
130 SkASSERT(readBuffer[j] == controlPixelData[j]); | |
131 REPORTER_ASSERT(reporter, readBuffer[j] == controlPixelData[j]); | 130 REPORTER_ASSERT(reporter, readBuffer[j] == controlPixelData[j]); |
132 } | 131 } |
133 } | 132 } |
134 } | 133 } |
135 } | 134 } |
136 | 135 |
137 #endif | 136 #endif |
OLD | NEW |