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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 409723003: content: Add DeletedGpuMemoryBuffer IPC. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unused code Created 6 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 | Annotate | Revision Log
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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1354 matching lines...) Expand 10 before | Expand all | Expand 10 after
1365 IPC_MESSAGE_HANDLER(ChildProcessHostMsg_DumpHandlesDone, 1365 IPC_MESSAGE_HANDLER(ChildProcessHostMsg_DumpHandlesDone,
1366 OnDumpHandlesDone) 1366 OnDumpHandlesDone)
1367 IPC_MESSAGE_HANDLER(ViewHostMsg_SuddenTerminationChanged, 1367 IPC_MESSAGE_HANDLER(ViewHostMsg_SuddenTerminationChanged,
1368 SuddenTerminationChanged) 1368 SuddenTerminationChanged)
1369 IPC_MESSAGE_HANDLER(ViewHostMsg_UserMetricsRecordAction, 1369 IPC_MESSAGE_HANDLER(ViewHostMsg_UserMetricsRecordAction,
1370 OnUserMetricsRecordAction) 1370 OnUserMetricsRecordAction)
1371 IPC_MESSAGE_HANDLER(ViewHostMsg_SavedPageAsMHTML, OnSavedPageAsMHTML) 1371 IPC_MESSAGE_HANDLER(ViewHostMsg_SavedPageAsMHTML, OnSavedPageAsMHTML)
1372 IPC_MESSAGE_HANDLER_DELAY_REPLY( 1372 IPC_MESSAGE_HANDLER_DELAY_REPLY(
1373 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer, 1373 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer,
1374 OnAllocateGpuMemoryBuffer) 1374 OnAllocateGpuMemoryBuffer)
1375 IPC_MESSAGE_HANDLER(ChildProcessHostMsg_DeletedGpuMemoryBuffer,
1376 OnDeletedGpuMemoryBuffer)
1375 IPC_MESSAGE_HANDLER(ViewHostMsg_Close_ACK, OnCloseACK) 1377 IPC_MESSAGE_HANDLER(ViewHostMsg_Close_ACK, OnCloseACK)
1376 #if defined(ENABLE_WEBRTC) 1378 #if defined(ENABLE_WEBRTC)
1377 IPC_MESSAGE_HANDLER(AecDumpMsg_RegisterAecDumpConsumer, 1379 IPC_MESSAGE_HANDLER(AecDumpMsg_RegisterAecDumpConsumer,
1378 OnRegisterAecDumpConsumer) 1380 OnRegisterAecDumpConsumer)
1379 IPC_MESSAGE_HANDLER(AecDumpMsg_UnregisterAecDumpConsumer, 1381 IPC_MESSAGE_HANDLER(AecDumpMsg_UnregisterAecDumpConsumer,
1380 OnUnregisterAecDumpConsumer) 1382 OnUnregisterAecDumpConsumer)
1381 #endif 1383 #endif
1382 // Adding single handlers for your service here is fine, but once your 1384 // Adding single handlers for your service here is fine, but once your
1383 // service needs more than one handler, please extract them into a new 1385 // service needs more than one handler, please extract them into a new
1384 // message filter and add that filter to CreateMessageFilters(). 1386 // message filter and add that filter to CreateMessageFilters().
(...skipping 947 matching lines...) Expand 10 before | Expand all | Expand 10 after
2332 2334
2333 void RenderProcessHostImpl::GpuMemoryBufferAllocated( 2335 void RenderProcessHostImpl::GpuMemoryBufferAllocated(
2334 IPC::Message* reply, 2336 IPC::Message* reply,
2335 const gfx::GpuMemoryBufferHandle& handle) { 2337 const gfx::GpuMemoryBufferHandle& handle) {
2336 DCHECK_CURRENTLY_ON(BrowserThread::UI); 2338 DCHECK_CURRENTLY_ON(BrowserThread::UI);
2337 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, 2339 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply,
2338 handle); 2340 handle);
2339 Send(reply); 2341 Send(reply);
2340 } 2342 }
2341 2343
2344 void RenderProcessHostImpl::OnDeletedGpuMemoryBuffer(
2345 gfx::GpuMemoryBufferType type,
2346 const gfx::GpuMemoryBufferId& id) {
2347 DCHECK_CURRENTLY_ON(BrowserThread::UI);
2348 GpuMemoryBufferImpl::DeletedByChildProcess(type, id, GetHandle());
2349 }
2350
2342 } // namespace content 2351 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.h ('k') | content/common/child_process_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698