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 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 int host_id); | 49 int host_id); |
50 void UpdateVisibility(bool); | 50 void UpdateVisibility(bool); |
51 protected: | 51 protected: |
52 // Friend RefCounted so that the dtor can be non-public. | 52 // Friend RefCounted so that the dtor can be non-public. |
53 friend class base::RefCounted<BrowserPluginCompositingHelper>; | 53 friend class base::RefCounted<BrowserPluginCompositingHelper>; |
54 private: | 54 private: |
55 ~BrowserPluginCompositingHelper(); | 55 ~BrowserPluginCompositingHelper(); |
56 void CheckSizeAndAdjustLayerBounds(const gfx::Size& new_size, | 56 void CheckSizeAndAdjustLayerBounds(const gfx::Size& new_size, |
57 float device_scale_factor, | 57 float device_scale_factor, |
58 cc::Layer* layer); | 58 cc::Layer* layer); |
59 void FreeMailboxMemory(const std::string& mailbox_name, | |
60 unsigned sync_point); | |
61 void MailboxReleased(const std::string& mailbox_name, | 59 void MailboxReleased(const std::string& mailbox_name, |
62 int gpu_route_id, | 60 int gpu_route_id, |
63 int gpu_host_id, | 61 int gpu_host_id, |
64 unsigned sync_point, | 62 unsigned sync_point, |
65 bool lost_resource); | 63 bool lost_resource); |
66 int instance_id_; | 64 int instance_id_; |
67 int host_routing_id_; | 65 int host_routing_id_; |
68 int last_route_id_; | 66 int last_route_id_; |
69 int last_host_id_; | 67 int last_host_id_; |
70 bool last_mailbox_valid_; | 68 bool last_mailbox_valid_; |
71 bool ack_pending_; | 69 bool ack_pending_; |
72 bool ack_pending_for_crashed_guest_; | 70 bool ack_pending_for_crashed_guest_; |
73 | 71 |
74 gfx::Size buffer_size_; | 72 gfx::Size buffer_size_; |
75 | 73 |
76 scoped_refptr<cc::SolidColorLayer> background_layer_; | 74 scoped_refptr<cc::SolidColorLayer> background_layer_; |
77 scoped_refptr<cc::TextureLayer> texture_layer_; | 75 scoped_refptr<cc::TextureLayer> texture_layer_; |
78 scoped_refptr<cc::DelegatedRendererLayer> delegated_layer_; | 76 scoped_refptr<cc::DelegatedRendererLayer> delegated_layer_; |
79 scoped_ptr<WebKit::WebLayer> web_layer_; | 77 scoped_ptr<WebKit::WebLayer> web_layer_; |
80 WebKit::WebPluginContainer* container_; | 78 WebKit::WebPluginContainer* container_; |
81 | 79 |
82 scoped_refptr<BrowserPluginManager> browser_plugin_manager_; | 80 scoped_refptr<BrowserPluginManager> browser_plugin_manager_; |
83 }; | 81 }; |
84 | 82 |
85 } // namespace content | 83 } // namespace content |
86 | 84 |
87 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_COMPOSITING_HELPER_H_ | 85 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_COMPOSITING_HELPER_H_ |
OLD | NEW |