| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |