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

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: Patch 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 "base/hash_tables.h" 9 #include "base/hash_tables.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h"
11 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
12 #include "base/message_loop_proxy.h" 13 #include "base/message_loop_proxy.h"
13 #include "build/build_config.h" 14 #include "build/build_config.h"
14 #include "content/common/gpu/gpu_memory_manager.h" 15 #include "content/common/gpu/gpu_memory_manager.h"
15 #include "ipc/ipc_listener.h" 16 #include "ipc/ipc_listener.h"
16 #include "ipc/ipc_sender.h" 17 #include "ipc/ipc_sender.h"
17 #include "ui/gfx/native_widget_types.h" 18 #include "ui/gfx/native_widget_types.h"
19 #include "gpu/command_buffer/service/program_cache.h"
greggman 2012/06/26 23:00:27 forward declare instead?
dmurph 2012/07/04 00:01:29 Done.
18 20
19 namespace base { 21 namespace base {
20 class WaitableEvent; 22 class WaitableEvent;
21 } 23 }
22 24
23 namespace gfx { 25 namespace gfx {
24 class GLShareGroup; 26 class GLShareGroup;
25 } 27 }
26 28
27 namespace gpu { 29 namespace gpu {
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 // These objects manage channels to individual renderer processes there is 112 // These objects manage channels to individual renderer processes there is
111 // one channel for each renderer process that has connected to this GPU 113 // one channel for each renderer process that has connected to this GPU
112 // process. 114 // process.
113 typedef base::hash_map<int, scoped_refptr<GpuChannel> > GpuChannelMap; 115 typedef base::hash_map<int, scoped_refptr<GpuChannel> > GpuChannelMap;
114 GpuChannelMap gpu_channels_; 116 GpuChannelMap gpu_channels_;
115 scoped_refptr<gfx::GLShareGroup> share_group_; 117 scoped_refptr<gfx::GLShareGroup> share_group_;
116 scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_; 118 scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_;
117 GpuMemoryManager gpu_memory_manager_; 119 GpuMemoryManager gpu_memory_manager_;
118 GpuWatchdog* watchdog_; 120 GpuWatchdog* watchdog_;
119 scoped_refptr<SyncPointManager> sync_point_manager_; 121 scoped_refptr<SyncPointManager> sync_point_manager_;
122 scoped_ptr<gpu::gles2::ProgramCache> program_cache_;
120 123
121 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); 124 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager);
122 }; 125 };
123 126
124 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ 127 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698