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

Side by Side Diff: content/browser/gpu/gpu_data_manager_impl.cc

Issue 10392068: ui: Move gl/ directory out of gfx/, up to ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac_rel Created 8 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 | Annotate | Revision Log
« no previous file with comments | « content/DEPS ('k') | content/browser/gpu/gpu_process_host.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 "content/browser/gpu/gpu_data_manager_impl.h" 5 #include "content/browser/gpu/gpu_data_manager_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
11 #include "base/stringprintf.h" 11 #include "base/stringprintf.h"
12 #include "base/sys_info.h" 12 #include "base/sys_info.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "base/version.h" 14 #include "base/version.h"
15 #include "content/browser/gpu/gpu_process_host.h" 15 #include "content/browser/gpu/gpu_process_host.h"
16 #include "content/common/gpu/gpu_messages.h" 16 #include "content/common/gpu/gpu_messages.h"
17 #include "content/gpu/gpu_info_collector.h" 17 #include "content/gpu/gpu_info_collector.h"
18 #include "content/public/browser/browser_thread.h" 18 #include "content/public/browser/browser_thread.h"
19 #include "content/public/browser/gpu_data_manager_observer.h" 19 #include "content/public/browser/gpu_data_manager_observer.h"
20 #include "content/public/common/content_client.h" 20 #include "content/public/common/content_client.h"
21 #include "content/public/common/content_switches.h" 21 #include "content/public/common/content_switches.h"
22 #include "ui/gfx/gl/gl_implementation.h" 22 #include "ui/gl/gl_implementation.h"
23 #include "ui/gfx/gl/gl_switches.h" 23 #include "ui/gl/gl_switches.h"
24 #include "webkit/plugins/plugin_switches.h" 24 #include "webkit/plugins/plugin_switches.h"
25 25
26 using content::BrowserThread; 26 using content::BrowserThread;
27 using content::GpuDataManagerObserver; 27 using content::GpuDataManagerObserver;
28 using content::GpuFeatureType; 28 using content::GpuFeatureType;
29 29
30 // static 30 // static
31 content::GpuDataManager* content::GpuDataManager::GetInstance() { 31 content::GpuDataManager* content::GpuDataManager::GetInstance() {
32 return GpuDataManagerImpl::GetInstance(); 32 return GpuDataManagerImpl::GetInstance();
33 } 33 }
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 int flags = gpu_feature_type_; 286 int flags = gpu_feature_type_;
287 flags |= content::GPU_FEATURE_TYPE_ACCELERATED_COMPOSITING | 287 flags |= content::GPU_FEATURE_TYPE_ACCELERATED_COMPOSITING |
288 content::GPU_FEATURE_TYPE_WEBGL; 288 content::GPU_FEATURE_TYPE_WEBGL;
289 gpu_feature_type_ = static_cast<GpuFeatureType>(flags); 289 gpu_feature_type_ = static_cast<GpuFeatureType>(flags);
290 } 290 }
291 291
292 EnableSoftwareRenderingIfNecessary(); 292 EnableSoftwareRenderingIfNecessary();
293 NotifyGpuInfoUpdate(); 293 NotifyGpuInfoUpdate();
294 } 294 }
295 295
OLDNEW
« no previous file with comments | « content/DEPS ('k') | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698