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

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

Issue 435383002: adds WARP support to Chromium, for Metro mode only, on Windows 8 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: renamed switch Created 6 years, 3 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "content/browser/gpu/gpu_data_manager_impl_private.h" 7 #include "content/browser/gpu/gpu_data_manager_impl_private.h"
8 8
9 namespace content { 9 namespace content {
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 base::AutoLock auto_lock(lock_); 69 base::AutoLock auto_lock(lock_);
70 return private_->ShouldUseSwiftShader(); 70 return private_->ShouldUseSwiftShader();
71 } 71 }
72 72
73 void GpuDataManagerImpl::RegisterSwiftShaderPath( 73 void GpuDataManagerImpl::RegisterSwiftShaderPath(
74 const base::FilePath& path) { 74 const base::FilePath& path) {
75 base::AutoLock auto_lock(lock_); 75 base::AutoLock auto_lock(lock_);
76 private_->RegisterSwiftShaderPath(path); 76 private_->RegisterSwiftShaderPath(path);
77 } 77 }
78 78
79 bool GpuDataManagerImpl::ShouldUseWarp() const {
80 base::AutoLock auto_lock(lock_);
81 return private_->ShouldUseWarp();
82 }
83
79 void GpuDataManagerImpl::AddObserver( 84 void GpuDataManagerImpl::AddObserver(
80 GpuDataManagerObserver* observer) { 85 GpuDataManagerObserver* observer) {
81 base::AutoLock auto_lock(lock_); 86 base::AutoLock auto_lock(lock_);
82 private_->AddObserver(observer); 87 private_->AddObserver(observer);
83 } 88 }
84 89
85 void GpuDataManagerImpl::RemoveObserver( 90 void GpuDataManagerImpl::RemoveObserver(
86 GpuDataManagerObserver* observer) { 91 GpuDataManagerObserver* observer) {
87 base::AutoLock auto_lock(lock_); 92 base::AutoLock auto_lock(lock_);
88 private_->RemoveObserver(observer); 93 private_->RemoveObserver(observer);
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 } 266 }
262 267
263 GpuDataManagerImpl::GpuDataManagerImpl() 268 GpuDataManagerImpl::GpuDataManagerImpl()
264 : private_(GpuDataManagerImplPrivate::Create(this)) { 269 : private_(GpuDataManagerImplPrivate::Create(this)) {
265 } 270 }
266 271
267 GpuDataManagerImpl::~GpuDataManagerImpl() { 272 GpuDataManagerImpl::~GpuDataManagerImpl() {
268 } 273 }
269 274
270 } // namespace content 275 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl.h ('k') | content/browser/gpu/gpu_data_manager_impl_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698