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

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

Issue 1545113002: Switch to standard integer types in ui/gl/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 | « ui/gl/gl_image_surface_texture.h ('k') | ui/gl/gl_implementation_x11.cc » ('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 (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_implementation.h" 5 #include "ui/gl/gl_implementation.h"
6 6
7 #include <stddef.h>
8
7 #include <algorithm> 9 #include <algorithm>
8 #include <string> 10 #include <string>
9 11
10 #include "base/at_exit.h" 12 #include "base/at_exit.h"
11 #include "base/command_line.h" 13 #include "base/command_line.h"
12 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/macros.h"
13 #include "base/strings/string_split.h" 16 #include "base/strings/string_split.h"
14 #include "base/strings/string_util.h" 17 #include "base/strings/string_util.h"
18 #include "build/build_config.h"
15 #include "ui/gl/gl_bindings.h" 19 #include "ui/gl/gl_bindings.h"
16 #include "ui/gl/gl_gl_api_implementation.h" 20 #include "ui/gl/gl_gl_api_implementation.h"
17 #include "ui/gl/gl_version_info.h" 21 #include "ui/gl/gl_version_info.h"
18 22
19 namespace gfx { 23 namespace gfx {
20 24
21 namespace { 25 namespace {
22 26
23 const struct { 27 const struct {
24 const char* name; 28 const char* name;
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 const char* version_str = 213 const char* version_str =
210 reinterpret_cast<const char*>(glGetString(GL_VERSION)); 214 reinterpret_cast<const char*>(glGetString(GL_VERSION));
211 unsigned major_version, minor_version; 215 unsigned major_version, minor_version;
212 bool is_es, is_es3; 216 bool is_es, is_es3;
213 gfx::GLVersionInfo::ParseVersionString( 217 gfx::GLVersionInfo::ParseVersionString(
214 version_str, &major_version, &minor_version, &is_es, &is_es3); 218 version_str, &major_version, &minor_version, &is_es, &is_es3);
215 return is_es || major_version < 3; 219 return is_es || major_version < 3;
216 } 220 }
217 221
218 } // namespace gfx 222 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gl/gl_image_surface_texture.h ('k') | ui/gl/gl_implementation_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698