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

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

Powered by Google App Engine
This is Rietveld 408576698