| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 void DisableDomainBlockingFor3DAPIsForTesting(); | 168 void DisableDomainBlockingFor3DAPIsForTesting(); |
| 169 | 169 |
| 170 void Notify3DAPIBlocked(const GURL& top_origin_url, | 170 void Notify3DAPIBlocked(const GURL& top_origin_url, |
| 171 int render_process_id, | 171 int render_process_id, |
| 172 int render_frame_id, | 172 int render_frame_id, |
| 173 ThreeDAPIType requester); | 173 ThreeDAPIType requester); |
| 174 | 174 |
| 175 // Get number of features being blacklisted. | 175 // Get number of features being blacklisted. |
| 176 size_t GetBlacklistedFeatureCount() const; | 176 size_t GetBlacklistedFeatureCount() const; |
| 177 | 177 |
| 178 void SetDisplayCount(unsigned int display_count); | |
| 179 unsigned int GetDisplayCount() const; | |
| 180 | |
| 181 // Set the active gpu. | 178 // Set the active gpu. |
| 182 // Return true if it's a different GPU from the previous active one. | 179 // Return true if it's a different GPU from the previous active one. |
| 183 bool UpdateActiveGpu(uint32_t vendor_id, uint32_t device_id); | 180 bool UpdateActiveGpu(uint32_t vendor_id, uint32_t device_id); |
| 184 | 181 |
| 185 // Called when GPU process initialization failed. | 182 // Called when GPU process initialization failed. |
| 186 void OnGpuProcessInitFailure(); | 183 void OnGpuProcessInitFailure(); |
| 187 | 184 |
| 188 bool IsDriverBugWorkaroundActive(int feature) const; | 185 bool IsDriverBugWorkaroundActive(int feature) const; |
| 189 | 186 |
| 190 private: | 187 private: |
| (...skipping 30 matching lines...) Expand all Loading... |
| 221 | 218 |
| 222 mutable base::Lock lock_; | 219 mutable base::Lock lock_; |
| 223 scoped_ptr<GpuDataManagerImplPrivate> private_; | 220 scoped_ptr<GpuDataManagerImplPrivate> private_; |
| 224 | 221 |
| 225 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); | 222 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); |
| 226 }; | 223 }; |
| 227 | 224 |
| 228 } // namespace content | 225 } // namespace content |
| 229 | 226 |
| 230 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ | 227 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ |
| OLD | NEW |