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

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

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: first round of tryfixes Created 6 years, 4 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 #ifndef CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_
6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ 6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 virtual void AddObserver(GpuDataManagerObserver* observer) OVERRIDE; 74 virtual void AddObserver(GpuDataManagerObserver* observer) OVERRIDE;
75 virtual void RemoveObserver(GpuDataManagerObserver* observer) OVERRIDE; 75 virtual void RemoveObserver(GpuDataManagerObserver* observer) OVERRIDE;
76 virtual void UnblockDomainFrom3DAPIs(const GURL& url) OVERRIDE; 76 virtual void UnblockDomainFrom3DAPIs(const GURL& url) OVERRIDE;
77 virtual void DisableGpuWatchdog() OVERRIDE; 77 virtual void DisableGpuWatchdog() OVERRIDE;
78 virtual void SetGLStrings(const std::string& gl_vendor, 78 virtual void SetGLStrings(const std::string& gl_vendor,
79 const std::string& gl_renderer, 79 const std::string& gl_renderer,
80 const std::string& gl_version) OVERRIDE; 80 const std::string& gl_version) OVERRIDE;
81 virtual void GetGLStrings(std::string* gl_vendor, 81 virtual void GetGLStrings(std::string* gl_vendor,
82 std::string* gl_renderer, 82 std::string* gl_renderer,
83 std::string* gl_version) OVERRIDE; 83 std::string* gl_version) OVERRIDE;
84 virtual void SetShouldUseWarp(bool use_warp) OVERRIDE;
85 virtual bool ShouldUseWarp() const OVERRIDE;
84 virtual void DisableHardwareAcceleration() OVERRIDE; 86 virtual void DisableHardwareAcceleration() OVERRIDE;
85 virtual bool CanUseGpuBrowserCompositor() const OVERRIDE; 87 virtual bool CanUseGpuBrowserCompositor() const OVERRIDE;
86 88
87 // This collects preliminary GPU info, load GpuBlacklist, and compute the 89 // This collects preliminary GPU info, load GpuBlacklist, and compute the
88 // preliminary blacklisted features; it should only be called at browser 90 // preliminary blacklisted features; it should only be called at browser
89 // startup time in UI thread before the IO restriction is turned on. 91 // startup time in UI thread before the IO restriction is turned on.
90 void Initialize(); 92 void Initialize();
91 93
92 // Only update if the current GPUInfo is not finalized. If blacklist is 94 // Only update if the current GPUInfo is not finalized. If blacklist is
93 // loaded, run through blacklist and update blacklisted features. 95 // loaded, run through blacklist and update blacklisted features.
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 211
210 mutable base::Lock lock_; 212 mutable base::Lock lock_;
211 scoped_ptr<GpuDataManagerImplPrivate> private_; 213 scoped_ptr<GpuDataManagerImplPrivate> private_;
212 214
213 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); 215 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl);
214 }; 216 };
215 217
216 } // namespace content 218 } // namespace content
217 219
218 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ 220 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698