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

Side by Side Diff: chrome/browser/gpu_process_host.h

Issue 6352011: Improve blacklist logic: use more fields (driver_vendor, gl_renderer, ect) fo... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 | « chrome/browser/gpu_blacklist_unittest.cc ('k') | chrome/browser/gpu_process_host.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_GPU_PROCESS_HOST_H_ 5 #ifndef CHROME_BROWSER_GPU_PROCESS_HOST_H_
6 #define CHROME_BROWSER_GPU_PROCESS_HOST_H_ 6 #define CHROME_BROWSER_GPU_PROCESS_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <queue> 9 #include <queue>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/ref_counted.h" 12 #include "base/ref_counted.h"
13 #include "base/threading/non_thread_safe.h" 13 #include "base/threading/non_thread_safe.h"
14 #include "chrome/browser/browser_child_process_host.h" 14 #include "chrome/browser/browser_child_process_host.h"
15 #include "chrome/common/gpu_feature_flags.h"
15 #include "gfx/native_widget_types.h" 16 #include "gfx/native_widget_types.h"
16 17
17 class GpuBlacklist; 18 class GpuBlacklist;
18 class GPUInfo; 19 class GPUInfo;
19 class RenderMessageFilter; 20 class RenderMessageFilter;
20 21
21 namespace IPC { 22 namespace IPC {
22 struct ChannelHandle; 23 struct ChannelHandle;
23 class Message; 24 class Message;
24 } 25 }
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 virtual void OnProcessCrashed(int exit_code); 98 virtual void OnProcessCrashed(int exit_code);
98 99
99 bool CanLaunchGpuProcess() const; 100 bool CanLaunchGpuProcess() const;
100 bool LaunchGpuProcess(); 101 bool LaunchGpuProcess();
101 102
102 bool LoadGpuBlacklist(); 103 bool LoadGpuBlacklist();
103 104
104 bool initialized_; 105 bool initialized_;
105 bool initialized_successfully_; 106 bool initialized_successfully_;
106 107
107 bool blacklist_result_recorded_; 108 bool gpu_feature_flags_set_;
108
109 scoped_ptr<GpuBlacklist> gpu_blacklist_; 109 scoped_ptr<GpuBlacklist> gpu_blacklist_;
110 GpuFeatureFlags gpu_feature_flags_;
110 111
111 // These are the channel requests that we have already sent to 112 // These are the channel requests that we have already sent to
112 // the GPU process, but haven't heard back about yet. 113 // the GPU process, but haven't heard back about yet.
113 std::queue<ChannelRequest> sent_requests_; 114 std::queue<ChannelRequest> sent_requests_;
114 115
115 // The pending synchronization requests we need to reply to. 116 // The pending synchronization requests we need to reply to.
116 std::queue<SynchronizationRequest> queued_synchronization_replies_; 117 std::queue<SynchronizationRequest> queued_synchronization_replies_;
117 118
118 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); 119 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
119 }; 120 };
120 121
121 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_H_ 122 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/gpu_blacklist_unittest.cc ('k') | chrome/browser/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698