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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 namespace content { | 49 namespace content { |
50 | 50 |
51 class BrowserPlugin; | 51 class BrowserPlugin; |
52 class BrowserPluginManager; | 52 class BrowserPluginManager; |
53 class RenderFrameProxy; | 53 class RenderFrameProxy; |
54 | 54 |
55 class CONTENT_EXPORT ChildFrameCompositingHelper | 55 class CONTENT_EXPORT ChildFrameCompositingHelper |
56 : public base::RefCounted<ChildFrameCompositingHelper>, | 56 : public base::RefCounted<ChildFrameCompositingHelper>, |
57 public cc::DelegatedFrameResourceCollectionClient { | 57 public cc::DelegatedFrameResourceCollectionClient { |
58 public: | 58 public: |
59 static ChildFrameCompositingHelper* CreateForBrowserPlugin( | 59 static ChildFrameCompositingHelper* CreateCompositingHelperForBrowserPlugin( |
60 const base::WeakPtr<BrowserPlugin>& browser_plugin); | 60 const base::WeakPtr<BrowserPlugin>& browser_plugin); |
61 static ChildFrameCompositingHelper* CreateForRenderFrameProxy( | 61 static ChildFrameCompositingHelper* CreateCompositingHelperForRenderFrame( |
62 RenderFrameProxy* render_frame_proxy); | 62 blink::WebFrame* frame, |
| 63 RenderFrameProxy* render_frame_proxy, |
| 64 int host_routing_id); |
63 | 65 |
64 void CopyFromCompositingSurface(int request_id, | 66 void CopyFromCompositingSurface(int request_id, |
65 gfx::Rect source_rect, | 67 gfx::Rect source_rect, |
66 gfx::Size dest_size); | 68 gfx::Size dest_size); |
67 void DidCommitCompositorFrame(); | 69 void DidCommitCompositorFrame(); |
68 void EnableCompositing(bool); | 70 void EnableCompositing(bool); |
69 void OnContainerDestroy(); | 71 void OnContainerDestroy(); |
70 void OnBuffersSwapped(const gfx::Size& size, | 72 void OnBuffersSwapped(const gfx::Size& size, |
71 const gpu::Mailbox& mailbox, | 73 const gpu::Mailbox& mailbox, |
72 int gpu_route_id, | 74 int gpu_route_id, |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 scoped_refptr<cc::DelegatedRendererLayer> delegated_layer_; | 167 scoped_refptr<cc::DelegatedRendererLayer> delegated_layer_; |
166 scoped_ptr<blink::WebLayer> web_layer_; | 168 scoped_ptr<blink::WebLayer> web_layer_; |
167 blink::WebFrame* frame_; | 169 blink::WebFrame* frame_; |
168 | 170 |
169 DISALLOW_COPY_AND_ASSIGN(ChildFrameCompositingHelper); | 171 DISALLOW_COPY_AND_ASSIGN(ChildFrameCompositingHelper); |
170 }; | 172 }; |
171 | 173 |
172 } // namespace content | 174 } // namespace content |
173 | 175 |
174 #endif // CONTENT_RENDERER_CHILD_FRAME_COMPOSITING_HELPER_H_ | 176 #endif // CONTENT_RENDERER_CHILD_FRAME_COMPOSITING_HELPER_H_ |
OLD | NEW |