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

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: Added histogram improvement. 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
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 struct GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params; 18 struct GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params;
18 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; 19 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params;
19 class GpuBlacklist; 20 class GpuBlacklist;
20 class GPUInfo; 21 class GPUInfo;
21 class RenderMessageFilter; 22 class RenderMessageFilter;
22 23
23 namespace gfx { 24 namespace gfx {
24 class Size; 25 class Size;
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 virtual void OnProcessCrashed(int exit_code); 118 virtual void OnProcessCrashed(int exit_code);
118 119
119 bool CanLaunchGpuProcess() const; 120 bool CanLaunchGpuProcess() const;
120 bool LaunchGpuProcess(); 121 bool LaunchGpuProcess();
121 122
122 bool LoadGpuBlacklist(); 123 bool LoadGpuBlacklist();
123 124
124 bool initialized_; 125 bool initialized_;
125 bool initialized_successfully_; 126 bool initialized_successfully_;
126 127
127 bool blacklist_result_recorded_; 128 bool gpu_feature_flags_set_;
128
129 scoped_ptr<GpuBlacklist> gpu_blacklist_; 129 scoped_ptr<GpuBlacklist> gpu_blacklist_;
130 GpuFeatureFlags gpu_feature_flags_;
130 131
131 // These are the channel requests that we have already sent to 132 // These are the channel requests that we have already sent to
132 // the GPU process, but haven't heard back about yet. 133 // the GPU process, but haven't heard back about yet.
133 std::queue<ChannelRequest> sent_requests_; 134 std::queue<ChannelRequest> sent_requests_;
134 135
135 // The pending synchronization requests we need to reply to. 136 // The pending synchronization requests we need to reply to.
136 std::queue<SynchronizationRequest> queued_synchronization_replies_; 137 std::queue<SynchronizationRequest> queued_synchronization_replies_;
137 138
138 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); 139 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
139 }; 140 };
140 141
141 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_H_ 142 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698