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

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

Issue 10830203: Ensure a compositing window is created if the image transport surface isn't used. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
« 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) 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
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
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_
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