| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 void OnBuffersSwapped(const gfx::Size& size, | 73 void OnBuffersSwapped(const gfx::Size& size, |
| 74 const std::string& mailbox_name, | 74 const std::string& mailbox_name, |
| 75 int gpu_route_id, | 75 int gpu_route_id, |
| 76 int gpu_host_id, | 76 int gpu_host_id, |
| 77 float device_scale_factor); | 77 float device_scale_factor); |
| 78 void OnCompositorFrameSwapped(scoped_ptr<cc::CompositorFrame> frame, | 78 void OnCompositorFrameSwapped(scoped_ptr<cc::CompositorFrame> frame, |
| 79 int route_id, | 79 int route_id, |
| 80 uint32 output_surface_id, | 80 uint32 output_surface_id, |
| 81 int host_id); | 81 int host_id); |
| 82 void UpdateVisibility(bool); | 82 void UpdateVisibility(bool); |
| 83 void ChildFrameGone(); |
| 83 | 84 |
| 84 // cc::DelegatedFrameProviderClient implementation. | 85 // cc::DelegatedFrameProviderClient implementation. |
| 85 virtual void UnusedResourcesAreAvailable() OVERRIDE; | 86 virtual void UnusedResourcesAreAvailable() OVERRIDE; |
| 86 void SetContentsOpaque(bool); | 87 void SetContentsOpaque(bool); |
| 87 | 88 |
| 88 protected: | 89 protected: |
| 89 // Friend RefCounted so that the dtor can be non-public. | 90 // Friend RefCounted so that the dtor can be non-public. |
| 90 friend class base::RefCounted<ChildFrameCompositingHelper>; | 91 friend class base::RefCounted<ChildFrameCompositingHelper>; |
| 91 | 92 |
| 92 private: | 93 private: |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 | 162 |
| 162 scoped_refptr<BrowserPluginManager> browser_plugin_manager_; | 163 scoped_refptr<BrowserPluginManager> browser_plugin_manager_; |
| 163 RenderFrameImpl* render_frame_; | 164 RenderFrameImpl* render_frame_; |
| 164 | 165 |
| 165 DISALLOW_COPY_AND_ASSIGN(ChildFrameCompositingHelper); | 166 DISALLOW_COPY_AND_ASSIGN(ChildFrameCompositingHelper); |
| 166 }; | 167 }; |
| 167 | 168 |
| 168 } // namespace content | 169 } // namespace content |
| 169 | 170 |
| 170 #endif // CONTENT_RENDERER_CHILD_FRAME_COMPOSITING_HELPER_H_ | 171 #endif // CONTENT_RENDERER_CHILD_FRAME_COMPOSITING_HELPER_H_ |
| OLD | NEW |