OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 // kDisableCoreAnimationPlugins. | 57 // kDisableCoreAnimationPlugins. |
58 void AppendPluginCommandLine(CommandLine* command_line); | 58 void AppendPluginCommandLine(CommandLine* command_line); |
59 | 59 |
60 // This gets called when switching GPU might have happened. | 60 // This gets called when switching GPU might have happened. |
61 void HandleGpuSwitch(); | 61 void HandleGpuSwitch(); |
62 | 62 |
63 // Force the current card to be blacklisted (usually due to GPU process | 63 // Force the current card to be blacklisted (usually due to GPU process |
64 // crashes). | 64 // crashes). |
65 void BlacklistCard(); | 65 void BlacklistCard(); |
66 | 66 |
| 67 #if defined(OS_WIN) |
| 68 // Is the GPU process using the accelerated surface to present, instead of |
| 69 // presenting by itself. |
| 70 bool IsUsingAcceleratedSurface(); |
| 71 #endif |
| 72 |
67 private: | 73 private: |
68 typedef ObserverListThreadSafe<content::GpuDataManagerObserver> | 74 typedef ObserverListThreadSafe<content::GpuDataManagerObserver> |
69 GpuDataManagerObserverList; | 75 GpuDataManagerObserverList; |
70 | 76 |
71 friend struct DefaultSingletonTraits<GpuDataManagerImpl>; | 77 friend struct DefaultSingletonTraits<GpuDataManagerImpl>; |
72 | 78 |
73 GpuDataManagerImpl(); | 79 GpuDataManagerImpl(); |
74 virtual ~GpuDataManagerImpl(); | 80 virtual ~GpuDataManagerImpl(); |
75 | 81 |
76 void Initialize(); | 82 void Initialize(); |
(...skipping 29 matching lines...) Expand all Loading... |
106 FilePath swiftshader_path_; | 112 FilePath swiftshader_path_; |
107 | 113 |
108 // Current card force-blacklisted due to GPU crashes, or disabled through | 114 // Current card force-blacklisted due to GPU crashes, or disabled through |
109 // the --disable-gpu commandline switch. | 115 // the --disable-gpu commandline switch. |
110 bool card_blacklisted_; | 116 bool card_blacklisted_; |
111 | 117 |
112 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); | 118 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); |
113 }; | 119 }; |
114 | 120 |
115 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ | 121 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ |
OLD | NEW |