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

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

Issue 8625003: Revert 111040 - Reland 110355 - Use shared D3D9 texture to transport the compositor's backing buf... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « content/common/gpu/gpu_channel.cc ('k') | content/common/gpu/gpu_channel_manager.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // Message handlers. 70 // Message handlers.
71 void OnEstablishChannel(int renderer_id); 71 void OnEstablishChannel(int renderer_id);
72 void OnCloseChannel(const IPC::ChannelHandle& channel_handle); 72 void OnCloseChannel(const IPC::ChannelHandle& channel_handle);
73 void OnVisibilityChanged( 73 void OnVisibilityChanged(
74 int32 render_view_id, int32 renderer_id, bool visible); 74 int32 render_view_id, int32 renderer_id, bool visible);
75 void OnCreateViewCommandBuffer( 75 void OnCreateViewCommandBuffer(
76 gfx::PluginWindowHandle window, 76 gfx::PluginWindowHandle window,
77 int32 render_view_id, 77 int32 render_view_id,
78 int32 renderer_id, 78 int32 renderer_id,
79 const GPUCreateCommandBufferConfig& init_params); 79 const GPUCreateCommandBufferConfig& init_params);
80 void OnResizeViewACK(int32 renderer_id, int32 command_buffer_route_id);
80 81
81 void OnLoseAllContexts(); 82 void OnLoseAllContexts();
82 83
83 scoped_refptr<base::MessageLoopProxy> io_message_loop_; 84 scoped_refptr<base::MessageLoopProxy> io_message_loop_;
84 base::WaitableEvent* shutdown_event_; 85 base::WaitableEvent* shutdown_event_;
85 86
86 // Used to send and receive IPC messages from the browser process. 87 // Used to send and receive IPC messages from the browser process.
87 ChildThread* gpu_child_thread_; 88 ChildThread* gpu_child_thread_;
88 89
89 // These objects manage channels to individual renderer processes there is 90 // These objects manage channels to individual renderer processes there is
90 // one channel for each renderer process that has connected to this GPU 91 // one channel for each renderer process that has connected to this GPU
91 // process. 92 // process.
92 typedef base::hash_map<int, scoped_refptr<GpuChannel> > GpuChannelMap; 93 typedef base::hash_map<int, scoped_refptr<GpuChannel> > GpuChannelMap;
93 GpuChannelMap gpu_channels_; 94 GpuChannelMap gpu_channels_;
94 GpuWatchdog* watchdog_; 95 GpuWatchdog* watchdog_;
95 96
96 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); 97 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager);
97 }; 98 };
98 99
99 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ 100 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_channel.cc ('k') | content/common/gpu/gpu_channel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698