| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_BROWSER_PLUGIN_BROWSER_PLUGIN_COMPOSITING_HELPER_H_ | 5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_COMPOSITING_HELPER_H_ |
| 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_COMPOSITING_HELPER_H_ | 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_COMPOSITING_HELPER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 namespace cc { | 21 namespace cc { |
| 22 class CompositorFrame; | 22 class CompositorFrame; |
| 23 class Layer; | 23 class Layer; |
| 24 class SolidColorLayer; | 24 class SolidColorLayer; |
| 25 class TextureLayer; | 25 class TextureLayer; |
| 26 class DelegatedFrameProvider; | 26 class DelegatedFrameProvider; |
| 27 class DelegatedFrameResourceCollection; | 27 class DelegatedFrameResourceCollection; |
| 28 class DelegatedRendererLayer; | 28 class DelegatedRendererLayer; |
| 29 } | 29 } |
| 30 | 30 |
| 31 namespace WebKit { | 31 namespace blink { |
| 32 class WebPluginContainer; | 32 class WebPluginContainer; |
| 33 class WebLayer; | 33 class WebLayer; |
| 34 } | 34 } |
| 35 | 35 |
| 36 namespace content { | 36 namespace content { |
| 37 | 37 |
| 38 class BrowserPluginManager; | 38 class BrowserPluginManager; |
| 39 | 39 |
| 40 class CONTENT_EXPORT BrowserPluginCompositingHelper : | 40 class CONTENT_EXPORT BrowserPluginCompositingHelper : |
| 41 public base::RefCounted<BrowserPluginCompositingHelper> { | 41 public base::RefCounted<BrowserPluginCompositingHelper> { |
| 42 public: | 42 public: |
| 43 BrowserPluginCompositingHelper(WebKit::WebPluginContainer* container, | 43 BrowserPluginCompositingHelper(blink::WebPluginContainer* container, |
| 44 BrowserPluginManager* manager, | 44 BrowserPluginManager* manager, |
| 45 int instance_id, | 45 int instance_id, |
| 46 int host_routing_id); | 46 int host_routing_id); |
| 47 void DidCommitCompositorFrame(); | 47 void DidCommitCompositorFrame(); |
| 48 void EnableCompositing(bool); | 48 void EnableCompositing(bool); |
| 49 void OnContainerDestroy(); | 49 void OnContainerDestroy(); |
| 50 void OnBuffersSwapped(const gfx::Size& size, | 50 void OnBuffersSwapped(const gfx::Size& size, |
| 51 const std::string& mailbox_name, | 51 const std::string& mailbox_name, |
| 52 int gpu_route_id, | 52 int gpu_route_id, |
| 53 int gpu_host_id, | 53 int gpu_host_id, |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 std::vector<unsigned> unacked_software_frames_; | 99 std::vector<unsigned> unacked_software_frames_; |
| 100 | 100 |
| 101 gfx::Size buffer_size_; | 101 gfx::Size buffer_size_; |
| 102 | 102 |
| 103 scoped_refptr<cc::DelegatedFrameResourceCollection> resource_collection_; | 103 scoped_refptr<cc::DelegatedFrameResourceCollection> resource_collection_; |
| 104 scoped_refptr<cc::DelegatedFrameProvider> frame_provider_; | 104 scoped_refptr<cc::DelegatedFrameProvider> frame_provider_; |
| 105 | 105 |
| 106 scoped_refptr<cc::SolidColorLayer> background_layer_; | 106 scoped_refptr<cc::SolidColorLayer> background_layer_; |
| 107 scoped_refptr<cc::TextureLayer> texture_layer_; | 107 scoped_refptr<cc::TextureLayer> texture_layer_; |
| 108 scoped_refptr<cc::DelegatedRendererLayer> delegated_layer_; | 108 scoped_refptr<cc::DelegatedRendererLayer> delegated_layer_; |
| 109 scoped_ptr<WebKit::WebLayer> web_layer_; | 109 scoped_ptr<blink::WebLayer> web_layer_; |
| 110 WebKit::WebPluginContainer* container_; | 110 blink::WebPluginContainer* container_; |
| 111 | 111 |
| 112 scoped_refptr<BrowserPluginManager> browser_plugin_manager_; | 112 scoped_refptr<BrowserPluginManager> browser_plugin_manager_; |
| 113 }; | 113 }; |
| 114 | 114 |
| 115 } // namespace content | 115 } // namespace content |
| 116 | 116 |
| 117 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_COMPOSITING_HELPER_H_ | 117 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_COMPOSITING_HELPER_H_ |
| OLD | NEW |