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