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

Side by Side Diff: content/common/gpu/gpu_channel.cc

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.h ('k') | content/common/gpu/gpu_channel_manager.h » ('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 #if defined(OS_WIN) 5 #if defined(OS_WIN)
6 #include <windows.h> 6 #include <windows.h>
7 #endif 7 #endif
8 8
9 #include "content/common/gpu/gpu_channel.h" 9 #include "content/common/gpu/gpu_channel.h"
10 10
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 *route_id, 202 *route_id,
203 renderer_id_, 203 renderer_id_,
204 render_view_id, 204 render_view_id,
205 watchdog_, 205 watchdog_,
206 software_)); 206 software_));
207 router_.AddRoute(*route_id, stub.get()); 207 router_.AddRoute(*route_id, stub.get());
208 stubs_.AddWithID(stub.release(), *route_id); 208 stubs_.AddWithID(stub.release(), *route_id);
209 #endif // ENABLE_GPU 209 #endif // ENABLE_GPU
210 } 210 }
211 211
212 void GpuChannel::ViewResized(int32 command_buffer_route_id) {
213 GpuCommandBufferStub* stub = stubs_.Lookup(command_buffer_route_id);
214 if (stub == NULL)
215 return;
216
217 stub->ViewResized();
218 }
219
212 GpuCommandBufferStub* GpuChannel::LookupCommandBuffer(int32 route_id) { 220 GpuCommandBufferStub* GpuChannel::LookupCommandBuffer(int32 route_id) {
213 return stubs_.Lookup(route_id); 221 return stubs_.Lookup(route_id);
214 } 222 }
215 223
216 bool GpuChannel::OnControlMessageReceived(const IPC::Message& msg) { 224 bool GpuChannel::OnControlMessageReceived(const IPC::Message& msg) {
217 // Always use IPC_MESSAGE_HANDLER_DELAY_REPLY for synchronous message handlers 225 // Always use IPC_MESSAGE_HANDLER_DELAY_REPLY for synchronous message handlers
218 // here. This is so the reply can be delayed if the scheduler is unscheduled. 226 // here. This is so the reply can be delayed if the scheduler is unscheduled.
219 bool handled = true; 227 bool handled = true;
220 IPC_BEGIN_MESSAGE_MAP(GpuChannel, msg) 228 IPC_BEGIN_MESSAGE_MAP(GpuChannel, msg)
221 IPC_MESSAGE_HANDLER(GpuChannelMsg_Initialize, OnInitialize) 229 IPC_MESSAGE_HANDLER(GpuChannelMsg_Initialize, OnInitialize)
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 458
451 #if defined(OS_POSIX) 459 #if defined(OS_POSIX)
452 int GpuChannel::TakeRendererFileDescriptor() { 460 int GpuChannel::TakeRendererFileDescriptor() {
453 if (!channel_.get()) { 461 if (!channel_.get()) {
454 NOTREACHED(); 462 NOTREACHED();
455 return -1; 463 return -1;
456 } 464 }
457 return channel_->TakeClientFileDescriptor(); 465 return channel_->TakeClientFileDescriptor();
458 } 466 }
459 #endif // defined(OS_POSIX) 467 #endif // defined(OS_POSIX)
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_channel.h ('k') | content/common/gpu/gpu_channel_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698