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

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

Issue 237903002: Clean up mac gpu switching code a little. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix linux test Created 6 years, 8 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
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_PRIVATE_H_ 5 #ifndef CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_
6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ 6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 void Notify3DAPIBlocked(const GURL& url, 100 void Notify3DAPIBlocked(const GURL& url,
101 int render_process_id, 101 int render_process_id,
102 int render_view_id, 102 int render_view_id,
103 ThreeDAPIType requester); 103 ThreeDAPIType requester);
104 104
105 size_t GetBlacklistedFeatureCount() const; 105 size_t GetBlacklistedFeatureCount() const;
106 106
107 void SetDisplayCount(unsigned int display_count); 107 void SetDisplayCount(unsigned int display_count);
108 unsigned int GetDisplayCount() const; 108 unsigned int GetDisplayCount() const;
109 109
110 bool UpdateActiveGpu(uint32 vendor_id, uint32 device_id);
111
110 void OnGpuProcessInitFailure(); 112 void OnGpuProcessInitFailure();
111 113
112 virtual ~GpuDataManagerImplPrivate(); 114 virtual ~GpuDataManagerImplPrivate();
113 115
114 private: 116 private:
115 friend class GpuDataManagerImplPrivateTest; 117 friend class GpuDataManagerImplPrivateTest;
116 118
117 FRIEND_TEST_ALL_PREFIXES(GpuDataManagerImplPrivateTest, 119 FRIEND_TEST_ALL_PREFIXES(GpuDataManagerImplPrivateTest,
118 GpuSideBlacklisting); 120 GpuSideBlacklisting);
119 FRIEND_TEST_ALL_PREFIXES(GpuDataManagerImplPrivateTest, 121 FRIEND_TEST_ALL_PREFIXES(GpuDataManagerImplPrivateTest,
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 // True if all future Initialize calls should be ignored. 259 // True if all future Initialize calls should be ignored.
258 bool finalized_; 260 bool finalized_;
259 261
260 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate); 262 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate);
261 }; 263 };
262 264
263 } // namespace content 265 } // namespace content
264 266
265 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ 267 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_
266 268
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl.cc ('k') | content/browser/gpu/gpu_data_manager_impl_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698