OLD | NEW |
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 #include "content/browser/renderer_host/render_message_filter.h" | 5 #include "content/browser/renderer_host/render_message_filter.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
8 #include <string.h> | 8 #include <string.h> |
9 #include <map> | 9 #include <map> |
10 #include <utility> | 10 #include <utility> |
(...skipping 20 matching lines...) Expand all Loading... |
31 #include "content/browser/loader/resource_dispatcher_host_impl.h" | 31 #include "content/browser/loader/resource_dispatcher_host_impl.h" |
32 #include "content/browser/media/media_internals.h" | 32 #include "content/browser/media/media_internals.h" |
33 #include "content/browser/renderer_host/pepper/pepper_security_helper.h" | 33 #include "content/browser/renderer_host/pepper/pepper_security_helper.h" |
34 #include "content/browser/renderer_host/render_process_host_impl.h" | 34 #include "content/browser/renderer_host/render_process_host_impl.h" |
35 #include "content/browser/renderer_host/render_view_host_delegate.h" | 35 #include "content/browser/renderer_host/render_view_host_delegate.h" |
36 #include "content/browser/renderer_host/render_widget_helper.h" | 36 #include "content/browser/renderer_host/render_widget_helper.h" |
37 #include "content/browser/resource_context_impl.h" | 37 #include "content/browser/resource_context_impl.h" |
38 #include "content/common/child_process_host_impl.h" | 38 #include "content/common/child_process_host_impl.h" |
39 #include "content/common/child_process_messages.h" | 39 #include "content/common/child_process_messages.h" |
40 #include "content/common/content_constants_internal.h" | 40 #include "content/common/content_constants_internal.h" |
41 #include "content/common/gpu/client/gpu_memory_buffer_impl.h" | |
42 #include "content/common/host_shared_bitmap_manager.h" | 41 #include "content/common/host_shared_bitmap_manager.h" |
43 #include "content/common/render_process_messages.h" | 42 #include "content/common/render_process_messages.h" |
44 #include "content/common/view_messages.h" | 43 #include "content/common/view_messages.h" |
45 #include "content/public/browser/browser_child_process_host.h" | 44 #include "content/public/browser/browser_child_process_host.h" |
46 #include "content/public/browser/browser_context.h" | 45 #include "content/public/browser/browser_context.h" |
47 #include "content/public/browser/browser_thread.h" | 46 #include "content/public/browser/browser_thread.h" |
48 #include "content/public/browser/content_browser_client.h" | 47 #include "content/public/browser/content_browser_client.h" |
49 #include "content/public/browser/download_manager.h" | 48 #include "content/public/browser/download_manager.h" |
50 #include "content/public/browser/download_url_parameters.h" | 49 #include "content/public/browser/download_url_parameters.h" |
51 #include "content/public/browser/resource_context.h" | 50 #include "content/public/browser/resource_context.h" |
52 #include "content/public/browser/user_metrics.h" | 51 #include "content/public/browser/user_metrics.h" |
53 #include "content/public/common/content_switches.h" | 52 #include "content/public/common/content_switches.h" |
54 #include "content/public/common/context_menu_params.h" | 53 #include "content/public/common/context_menu_params.h" |
55 #include "content/public/common/url_constants.h" | 54 #include "content/public/common/url_constants.h" |
| 55 #include "gpu/ipc/client/gpu_memory_buffer_impl.h" |
56 #include "ipc/ipc_channel_handle.h" | 56 #include "ipc/ipc_channel_handle.h" |
57 #include "ipc/ipc_platform_file.h" | 57 #include "ipc/ipc_platform_file.h" |
58 #include "media/audio/audio_manager.h" | 58 #include "media/audio/audio_manager.h" |
59 #include "media/audio/audio_manager_base.h" | 59 #include "media/audio/audio_manager_base.h" |
60 #include "media/audio/audio_parameters.h" | 60 #include "media/audio/audio_parameters.h" |
61 #include "media/base/media_log_event.h" | 61 #include "media/base/media_log_event.h" |
62 #include "net/base/io_buffer.h" | 62 #include "net/base/io_buffer.h" |
63 #include "net/base/keygen_handler.h" | 63 #include "net/base/keygen_handler.h" |
64 #include "net/base/mime_util.h" | 64 #include "net/base/mime_util.h" |
65 #include "net/base/request_priority.h" | 65 #include "net/base/request_priority.h" |
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
744 void RenderMessageFilter::OnDeletedGpuMemoryBuffer( | 744 void RenderMessageFilter::OnDeletedGpuMemoryBuffer( |
745 gfx::GpuMemoryBufferId id, | 745 gfx::GpuMemoryBufferId id, |
746 const gpu::SyncToken& sync_token) { | 746 const gpu::SyncToken& sync_token) { |
747 DCHECK(BrowserGpuMemoryBufferManager::current()); | 747 DCHECK(BrowserGpuMemoryBufferManager::current()); |
748 | 748 |
749 BrowserGpuMemoryBufferManager::current()->ChildProcessDeletedGpuMemoryBuffer( | 749 BrowserGpuMemoryBufferManager::current()->ChildProcessDeletedGpuMemoryBuffer( |
750 id, PeerHandle(), render_process_id_, sync_token); | 750 id, PeerHandle(), render_process_id_, sync_token); |
751 } | 751 } |
752 | 752 |
753 } // namespace content | 753 } // namespace content |
OLD | NEW |