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

Side by Side Diff: content/browser/gpu/gpu_data_manager_impl.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
« no previous file with comments | « no previous file | content/browser/gpu/gpu_data_manager_impl.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) 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 int render_process_id, 159 int render_process_id,
160 int render_view_id, 160 int render_view_id,
161 ThreeDAPIType requester); 161 ThreeDAPIType requester);
162 162
163 // Get number of features being blacklisted. 163 // Get number of features being blacklisted.
164 size_t GetBlacklistedFeatureCount() const; 164 size_t GetBlacklistedFeatureCount() const;
165 165
166 void SetDisplayCount(unsigned int display_count); 166 void SetDisplayCount(unsigned int display_count);
167 unsigned int GetDisplayCount() const; 167 unsigned int GetDisplayCount() const;
168 168
169 // Set the active gpu.
170 // Return true if it's a different GPU from the previous active one.
171 bool UpdateActiveGpu(uint32 vendor_id, uint32 device_id);
172
169 // Called when GPU process initialization failed. 173 // Called when GPU process initialization failed.
170 void OnGpuProcessInitFailure(); 174 void OnGpuProcessInitFailure();
171 175
172 bool IsDriverBugWorkaroundActive(int feature) const; 176 bool IsDriverBugWorkaroundActive(int feature) const;
173 177
174 private: 178 private:
175 friend class GpuDataManagerImplPrivate; 179 friend class GpuDataManagerImplPrivate;
176 friend class GpuDataManagerImplPrivateTest; 180 friend class GpuDataManagerImplPrivateTest;
177 friend struct DefaultSingletonTraits<GpuDataManagerImpl>; 181 friend struct DefaultSingletonTraits<GpuDataManagerImpl>;
178 182
(...skipping 26 matching lines...) Expand all
205 209
206 mutable base::Lock lock_; 210 mutable base::Lock lock_;
207 scoped_ptr<GpuDataManagerImplPrivate> private_; 211 scoped_ptr<GpuDataManagerImplPrivate> private_;
208 212
209 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); 213 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl);
210 }; 214 };
211 215
212 } // namespace content 216 } // namespace content
213 217
214 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ 218 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/gpu/gpu_data_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698