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

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

Issue 1274763003: Initialize GPU shader disk cache on brower thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address content_unittests failure on Android Created 5 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
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_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_ 5 #ifndef CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_
6 #define CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_ 6 #define CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 void GpuChannelEstablished(); 56 void GpuChannelEstablished();
57 void CreateViewCommandBufferOnIO( 57 void CreateViewCommandBufferOnIO(
58 CreateRequest* request, 58 CreateRequest* request,
59 int32 surface_id, 59 int32 surface_id,
60 const GPUCreateCommandBufferConfig& init_params); 60 const GPUCreateCommandBufferConfig& init_params);
61 static void CommandBufferCreatedOnIO(CreateRequest* request, 61 static void CommandBufferCreatedOnIO(CreateRequest* request,
62 CreateCommandBufferResult result); 62 CreateCommandBufferResult result);
63 static void AddFilterOnIO(int gpu_host_id, 63 static void AddFilterOnIO(int gpu_host_id,
64 scoped_refptr<IPC::MessageFilter> filter); 64 scoped_refptr<IPC::MessageFilter> filter);
65 static void InitializeShaderDiskCacheOnIO(int gpu_client_id,
66 const base::FilePath& cache_dir);
65 67
66 const int gpu_client_id_; 68 const int gpu_client_id_;
67 const uint64_t gpu_client_tracing_id_; 69 const uint64_t gpu_client_tracing_id_;
68 scoped_ptr<base::WaitableEvent> shutdown_event_; 70 scoped_ptr<base::WaitableEvent> shutdown_event_;
69 scoped_refptr<GpuChannelHost> gpu_channel_; 71 scoped_refptr<GpuChannelHost> gpu_channel_;
70 scoped_ptr<BrowserGpuMemoryBufferManager> gpu_memory_buffer_manager_; 72 scoped_ptr<BrowserGpuMemoryBufferManager> gpu_memory_buffer_manager_;
71 int gpu_host_id_; 73 int gpu_host_id_;
72 scoped_refptr<EstablishRequest> pending_request_; 74 scoped_refptr<EstablishRequest> pending_request_;
73 std::vector<base::Closure> established_callbacks_; 75 std::vector<base::Closure> established_callbacks_;
74 76
75 static BrowserGpuChannelHostFactory* instance_; 77 static BrowserGpuChannelHostFactory* instance_;
76 78
77 DISALLOW_COPY_AND_ASSIGN(BrowserGpuChannelHostFactory); 79 DISALLOW_COPY_AND_ASSIGN(BrowserGpuChannelHostFactory);
78 }; 80 };
79 81
80 } // namespace content 82 } // namespace content
81 83
82 #endif // CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_ 84 #endif // CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | content/browser/gpu/browser_gpu_channel_host_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698