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

Side by Side Diff: ui/gl/gl_gl_api_implementation.cc

Issue 2072033003: Fix oes-texture-half-float.html on core profile GL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « no previous file | 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ui/gl/gl_gl_api_implementation.h" 5 #include "ui/gl/gl_gl_api_implementation.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 break; 156 break;
157 case GL_LUMINANCE_ALPHA: 157 case GL_LUMINANCE_ALPHA:
158 gl_internal_format = GL_LUMINANCE_ALPHA16F_ARB; 158 gl_internal_format = GL_LUMINANCE_ALPHA16F_ARB;
159 break; 159 break;
160 case GL_LUMINANCE: 160 case GL_LUMINANCE:
161 gl_internal_format = GL_LUMINANCE16F_ARB; 161 gl_internal_format = GL_LUMINANCE16F_ARB;
162 break; 162 break;
163 case GL_ALPHA: 163 case GL_ALPHA:
164 gl_internal_format = GL_ALPHA16F_ARB; 164 gl_internal_format = GL_ALPHA16F_ARB;
165 break; 165 break;
166 // RED and RG are reached here because on Desktop GL core profile,
167 // LIMINANCE/ALPHA formats are emulated through RED and RG in Chrome.
Ken Russell (switch to Gerrit) 2016/06/17 00:52:30 typo: LUMINANCE
Zhenyao Mo 2016/06/17 02:48:09 Done
168 case GL_RED:
169 gl_internal_format = GL_R16F;
170 break;
171 case GL_RG:
172 gl_internal_format = GL_RG16F;
173 break;
166 default: 174 default:
167 NOTREACHED(); 175 NOTREACHED();
168 break; 176 break;
169 } 177 }
170 } 178 }
171 179
172 return gl_internal_format; 180 return gl_internal_format;
173 } 181 }
174 182
175 static inline GLenum GetTexFormat(GLenum format) { 183 static inline GLenum GetTexFormat(GLenum format) {
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 674
667 void VirtualGLApi::glFlushFn() { 675 void VirtualGLApi::glFlushFn() {
668 GLApiBase::glFlushFn(); 676 GLApiBase::glFlushFn();
669 } 677 }
670 678
671 void VirtualGLApi::glFinishFn() { 679 void VirtualGLApi::glFinishFn() {
672 GLApiBase::glFinishFn(); 680 GLApiBase::glFinishFn();
673 } 681 }
674 682
675 } // namespace gl 683 } // namespace gl
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698