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

Side by Side Diff: tests/FloatingPointTextureTest.cpp

Issue 799593002: Fix float and half float support on mobile. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rearrange format setup to get around GCC 4.8 Created 6 years 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/gl/GrGpuGL.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 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
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
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGpuGL.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698