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

Side by Side Diff: content/common/gpu/gpu_channel_manager.h

Issue 10534173: GPU Program Caching (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: tiny fix for android and windows build Created 8 years, 5 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_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_
6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_
7 7
8 #include <vector>
9
8 #include "base/hash_tables.h" 10 #include "base/hash_tables.h"
9 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
11 #include "base/message_loop_proxy.h" 14 #include "base/message_loop_proxy.h"
12 #include "build/build_config.h" 15 #include "build/build_config.h"
13 #include "content/common/gpu/gpu_memory_manager.h" 16 #include "content/common/gpu/gpu_memory_manager.h"
14 #include "ipc/ipc_listener.h" 17 #include "ipc/ipc_listener.h"
15 #include "ipc/ipc_sender.h" 18 #include "ipc/ipc_sender.h"
16 #include "ui/gfx/native_widget_types.h" 19 #include "ui/gfx/native_widget_types.h"
17 20
18 namespace base { 21 namespace base {
19 class WaitableEvent; 22 class WaitableEvent;
20 } 23 }
21 24
22 namespace gfx { 25 namespace gfx {
23 class GLShareGroup; 26 class GLShareGroup;
24 } 27 }
25 28
26 namespace gpu { 29 namespace gpu {
27 namespace gles2 { 30 namespace gles2 {
28 class MailboxManager; 31 class MailboxManager;
32 class ProgramCache;
29 } 33 }
30 } 34 }
31 35
32 namespace IPC { 36 namespace IPC {
33 struct ChannelHandle; 37 struct ChannelHandle;
34 } 38 }
35 39
36 class ChildThread; 40 class ChildThread;
37 class GpuChannel; 41 class GpuChannel;
38 class GpuWatchdog; 42 class GpuWatchdog;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // These objects manage channels to individual renderer processes there is 113 // These objects manage channels to individual renderer processes there is
110 // one channel for each renderer process that has connected to this GPU 114 // one channel for each renderer process that has connected to this GPU
111 // process. 115 // process.
112 typedef base::hash_map<int, scoped_refptr<GpuChannel> > GpuChannelMap; 116 typedef base::hash_map<int, scoped_refptr<GpuChannel> > GpuChannelMap;
113 GpuChannelMap gpu_channels_; 117 GpuChannelMap gpu_channels_;
114 scoped_refptr<gfx::GLShareGroup> share_group_; 118 scoped_refptr<gfx::GLShareGroup> share_group_;
115 scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_; 119 scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_;
116 GpuMemoryManager gpu_memory_manager_; 120 GpuMemoryManager gpu_memory_manager_;
117 GpuWatchdog* watchdog_; 121 GpuWatchdog* watchdog_;
118 scoped_refptr<SyncPointManager> sync_point_manager_; 122 scoped_refptr<SyncPointManager> sync_point_manager_;
123 scoped_ptr<gpu::gles2::ProgramCache> program_cache_;
119 124
120 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); 125 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager);
121 }; 126 };
122 127
123 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ 128 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698