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

Side by Side Diff: cc/fake_web_graphics_context_3d.cc

Issue 12314003: cc: Use highp precision for texture coordinates if available (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove synchronous startup call. Fix tests. Created 7 years, 9 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 | « cc/fake_web_graphics_context_3d.h ('k') | cc/program_binding.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/fake_web_graphics_context_3d.h" 5 #include "cc/fake_web_graphics_context_3d.h"
6 6
7 #include "third_party/khronos/GLES2/gl2.h" 7 #include "third_party/khronos/GLES2/gl2.h"
8 8
9 using WebKit::WGC3Dboolean; 9 using WebKit::WGC3Dboolean;
10 using WebKit::WGC3Denum; 10 using WebKit::WGC3Denum;
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 WebKit::WGC3Dint* value) { 145 WebKit::WGC3Dint* value) {
146 if (pname == GL_COMPILE_STATUS) 146 if (pname == GL_COMPILE_STATUS)
147 *value = 1; 147 *value = 1;
148 } 148 }
149 149
150 WebKit::WebString FakeWebGraphicsContext3D::getShaderInfoLog( 150 WebKit::WebString FakeWebGraphicsContext3D::getShaderInfoLog(
151 WebGLId shader) { 151 WebGLId shader) {
152 return WebKit::WebString(); 152 return WebKit::WebString();
153 } 153 }
154 154
155 void FakeWebGraphicsContext3D::getShaderPrecisionFormat(
156 WebKit::WGC3Denum shadertype,
157 WebKit::WGC3Denum precisiontype,
158 WebKit::WGC3Dint* range,
159 WebKit::WGC3Dint* precision) {
160 range[0] = 0;
161 range[1] = 0;
162 *precision = 0;
163 }
164
155 WebKit::WebString FakeWebGraphicsContext3D::getShaderSource( 165 WebKit::WebString FakeWebGraphicsContext3D::getShaderSource(
156 WebGLId shader) { 166 WebGLId shader) {
157 return WebKit::WebString(); 167 return WebKit::WebString();
158 } 168 }
159 169
160 WebKit::WebString FakeWebGraphicsContext3D::getString(WGC3Denum name) { 170 WebKit::WebString FakeWebGraphicsContext3D::getString(WGC3Denum name) {
161 return WebKit::WebString(); 171 return WebKit::WebString();
162 } 172 }
163 173
164 WebKit::WGC3Dint FakeWebGraphicsContext3D::getUniformLocation( 174 WebKit::WGC3Dint FakeWebGraphicsContext3D::getUniformLocation(
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 300
291 void FakeWebGraphicsContext3D::setContextLostCallback( 301 void FakeWebGraphicsContext3D::setContextLostCallback(
292 WebGraphicsContextLostCallback* callback) { 302 WebGraphicsContextLostCallback* callback) {
293 } 303 }
294 304
295 void FakeWebGraphicsContext3D::loseContextCHROMIUM(WGC3Denum current, 305 void FakeWebGraphicsContext3D::loseContextCHROMIUM(WGC3Denum current,
296 WGC3Denum other) { 306 WGC3Denum other) {
297 } 307 }
298 308
299 } // namespace cc 309 } // namespace cc
OLDNEW
« no previous file with comments | « cc/fake_web_graphics_context_3d.h ('k') | cc/program_binding.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698