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

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

Issue 2744363002: Clear shader disk cache after glProgramBinary failure. (Closed)
Patch Set: Remove singleton and clean up init Created 3 years, 9 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
« no previous file with comments | « no previous file | content/browser/gpu/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) 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_PROCESS_HOST_H_ 5 #ifndef CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
11 #include <memory> 11 #include <memory>
12 #include <queue> 12 #include <queue>
13 #include <set> 13 #include <set>
14 #include <string> 14 #include <string>
15 15
16 #include "base/callback.h" 16 #include "base/callback.h"
17 #include "base/containers/hash_tables.h" 17 #include "base/containers/hash_tables.h"
18 #include "base/macros.h" 18 #include "base/macros.h"
19 #include "base/memory/weak_ptr.h" 19 #include "base/memory/weak_ptr.h"
20 #include "base/threading/non_thread_safe.h" 20 #include "base/threading/non_thread_safe.h"
21 #include "base/time/time.h" 21 #include "base/time/time.h"
22 #include "build/build_config.h" 22 #include "build/build_config.h"
23 #include "content/common/content_export.h" 23 #include "content/common/content_export.h"
24 #include "content/public/browser/browser_child_process_host_delegate.h" 24 #include "content/public/browser/browser_child_process_host_delegate.h"
25 #include "content/public/browser/gpu_data_manager.h" 25 #include "content/public/browser/gpu_data_manager.h"
26 #include "gpu/command_buffer/common/activity_flags.h"
26 #include "gpu/command_buffer/common/constants.h" 27 #include "gpu/command_buffer/common/constants.h"
27 #include "gpu/config/gpu_feature_info.h" 28 #include "gpu/config/gpu_feature_info.h"
28 #include "gpu/config/gpu_info.h" 29 #include "gpu/config/gpu_info.h"
29 #include "gpu/ipc/common/surface_handle.h" 30 #include "gpu/ipc/common/surface_handle.h"
30 #include "ipc/ipc_sender.h" 31 #include "ipc/ipc_sender.h"
31 #include "ipc/message_filter.h" 32 #include "ipc/message_filter.h"
32 #include "mojo/public/cpp/bindings/binding.h" 33 #include "mojo/public/cpp/bindings/binding.h"
33 #include "services/ui/gpu/interfaces/gpu_host.mojom.h" 34 #include "services/ui/gpu/interfaces/gpu_host.mojom.h"
34 #include "services/ui/gpu/interfaces/gpu_main.mojom.h" 35 #include "services/ui/gpu/interfaces/gpu_main.mojom.h"
35 #include "services/ui/gpu/interfaces/gpu_service.mojom.h" 36 #include "services/ui/gpu/interfaces/gpu_service.mojom.h"
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 290
290 typedef std::map<int32_t, scoped_refptr<gpu::ShaderDiskCache>> 291 typedef std::map<int32_t, scoped_refptr<gpu::ShaderDiskCache>>
291 ClientIdToShaderCacheMap; 292 ClientIdToShaderCacheMap;
292 ClientIdToShaderCacheMap client_id_to_shader_cache_; 293 ClientIdToShaderCacheMap client_id_to_shader_cache_;
293 294
294 std::string shader_prefix_key_info_; 295 std::string shader_prefix_key_info_;
295 296
296 ui::mojom::GpuMainAssociatedPtr gpu_main_ptr_; 297 ui::mojom::GpuMainAssociatedPtr gpu_main_ptr_;
297 ui::mojom::GpuServicePtr gpu_service_ptr_; 298 ui::mojom::GpuServicePtr gpu_service_ptr_;
298 mojo::Binding<ui::mojom::GpuHost> gpu_host_binding_; 299 mojo::Binding<ui::mojom::GpuHost> gpu_host_binding_;
300 gpu::GpuProcessHostActivityFlags activity_flags_;
299 301
300 base::WeakPtrFactory<GpuProcessHost> weak_ptr_factory_; 302 base::WeakPtrFactory<GpuProcessHost> weak_ptr_factory_;
301 303
302 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); 304 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
303 }; 305 };
304 306
305 } // namespace content 307 } // namespace content
306 308
307 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 309 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698