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

Side by Side Diff: ui/gl/gl_version_info.h

Issue 1938493002: [Reland] Fix ReadPixels from float fbo buffer in ES2/WebGL1. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef UI_GL_GL_VERSION_INFO_H_ 5 #ifndef UI_GL_GL_VERSION_INFO_H_
6 #define UI_GL_GL_VERSION_INFO_H_ 6 #define UI_GL_GL_VERSION_INFO_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 if (IsAtLeastGL(3, 2)) 48 if (IsAtLeastGL(3, 2))
49 return true; 49 return true;
50 #endif 50 #endif
51 return false; 51 return false;
52 } 52 }
53 53
54 static void ParseVersionString(const char* version_str, 54 static void ParseVersionString(const char* version_str,
55 unsigned* major_version, 55 unsigned* major_version,
56 unsigned* minor_version, 56 unsigned* minor_version,
57 bool* is_es, 57 bool* is_es,
58 bool* is_es2,
58 bool* is_es3); 59 bool* is_es3);
59 60
60 bool is_es; 61 bool is_es;
61 bool is_angle; 62 bool is_angle;
62 unsigned major_version; 63 unsigned major_version;
63 unsigned minor_version; 64 unsigned minor_version;
65 bool is_es2;
64 bool is_es3; 66 bool is_es3;
65 bool is_desktop_core_profile; 67 bool is_desktop_core_profile;
66 68
67 private: 69 private:
68 GLVersionInfo(const char* version_str, const char* renderer_str); 70 GLVersionInfo(const char* version_str, const char* renderer_str);
69 71
70 DISALLOW_COPY_AND_ASSIGN(GLVersionInfo); 72 DISALLOW_COPY_AND_ASSIGN(GLVersionInfo);
71 }; 73 };
72 74
73 } // namespace gfx 75 } // namespace gfx
74 76
75 #endif // UI_GL_GL_VERSION_INFO_H_ 77 #endif // UI_GL_GL_VERSION_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698