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

Side by Side Diff: chrome/browser/gpu/gl_string_manager.cc

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 of 4. (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 | « chrome/browser/gpu/gl_string_manager.h ('k') | chrome/browser/gpu/gpu_feature_checker.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 (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 "chrome/browser/gpu/gl_string_manager.h" 5 #include "chrome/browser/gpu/gl_string_manager.h"
6 6
7 #include "base/prefs/pref_registry_simple.h" 7 #include "base/prefs/pref_registry_simple.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "build/build_config.h"
9 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
10 #include "chrome/common/pref_names.h" 11 #include "chrome/common/pref_names.h"
11 #include "content/public/browser/gpu_data_manager.h" 12 #include "content/public/browser/gpu_data_manager.h"
12 13
13 // static 14 // static
14 void GLStringManager::RegisterPrefs(PrefRegistrySimple* registry) { 15 void GLStringManager::RegisterPrefs(PrefRegistrySimple* registry) {
15 registry->RegisterStringPref(prefs::kGLVendorString, std::string()); 16 registry->RegisterStringPref(prefs::kGLVendorString, std::string());
16 registry->RegisterStringPref(prefs::kGLRendererString, std::string()); 17 registry->RegisterStringPref(prefs::kGLRendererString, std::string());
17 registry->RegisterStringPref(prefs::kGLVersionString, std::string()); 18 registry->RegisterStringPref(prefs::kGLVersionString, std::string());
18 } 19 }
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 if (!gl_renderer.empty() && gl_renderer != gl_renderer_) { 61 if (!gl_renderer.empty() && gl_renderer != gl_renderer_) {
61 gl_renderer_ = gl_renderer; 62 gl_renderer_ = gl_renderer;
62 local_state->SetString(prefs::kGLRendererString, gl_renderer_); 63 local_state->SetString(prefs::kGLRendererString, gl_renderer_);
63 } 64 }
64 if (!gl_version.empty() && gl_version != gl_version_) { 65 if (!gl_version.empty() && gl_version != gl_version_) {
65 gl_version_ = gl_version; 66 gl_version_ = gl_version;
66 local_state->SetString(prefs::kGLVersionString, gl_version_); 67 local_state->SetString(prefs::kGLVersionString, gl_version_);
67 } 68 }
68 } 69 }
69 70
OLDNEW
« no previous file with comments | « chrome/browser/gpu/gl_string_manager.h ('k') | chrome/browser/gpu/gpu_feature_checker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698