OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_RENDERER_CHILD_FRAME_COMPOSITING_HELPER_H_ | 5 #ifndef CONTENT_RENDERER_CHILD_FRAME_COMPOSITING_HELPER_H_ |
6 #define CONTENT_RENDERER_CHILD_FRAME_COMPOSITING_HELPER_H_ | 6 #define CONTENT_RENDERER_CHILD_FRAME_COMPOSITING_HELPER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 RenderFrameImpl* render_frame, | 62 RenderFrameImpl* render_frame, |
63 int host_routing_id); | 63 int host_routing_id); |
64 | 64 |
65 void CopyFromCompositingSurface(int request_id, | 65 void CopyFromCompositingSurface(int request_id, |
66 gfx::Rect source_rect, | 66 gfx::Rect source_rect, |
67 gfx::Size dest_size); | 67 gfx::Size dest_size); |
68 void DidCommitCompositorFrame(); | 68 void DidCommitCompositorFrame(); |
69 void EnableCompositing(bool); | 69 void EnableCompositing(bool); |
70 void OnContainerDestroy(); | 70 void OnContainerDestroy(); |
71 void OnBuffersSwapped(const gfx::Size& size, | 71 void OnBuffersSwapped(const gfx::Size& size, |
72 const std::string& mailbox_name, | 72 const gpu::Mailbox& mailbox, |
73 int gpu_route_id, | 73 int gpu_route_id, |
74 int gpu_host_id, | 74 int gpu_host_id, |
75 float device_scale_factor); | 75 float device_scale_factor); |
76 void OnCompositorFrameSwapped(scoped_ptr<cc::CompositorFrame> frame, | 76 void OnCompositorFrameSwapped(scoped_ptr<cc::CompositorFrame> frame, |
77 int route_id, | 77 int route_id, |
78 uint32 output_surface_id, | 78 uint32 output_surface_id, |
79 int host_id); | 79 int host_id); |
80 void UpdateVisibility(bool); | 80 void UpdateVisibility(bool); |
81 void ChildFrameGone(); | 81 void ChildFrameGone(); |
82 | 82 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 | 162 |
163 base::WeakPtr<BrowserPlugin> browser_plugin_; | 163 base::WeakPtr<BrowserPlugin> browser_plugin_; |
164 RenderFrameImpl* render_frame_; | 164 RenderFrameImpl* render_frame_; |
165 | 165 |
166 DISALLOW_COPY_AND_ASSIGN(ChildFrameCompositingHelper); | 166 DISALLOW_COPY_AND_ASSIGN(ChildFrameCompositingHelper); |
167 }; | 167 }; |
168 | 168 |
169 } // namespace content | 169 } // namespace content |
170 | 170 |
171 #endif // CONTENT_RENDERER_CHILD_FRAME_COMPOSITING_HELPER_H_ | 171 #endif // CONTENT_RENDERER_CHILD_FRAME_COMPOSITING_HELPER_H_ |
OLD | NEW |