OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 | 194 |
195 // Schedules a scroll of the plugin. This uses optimized scrolling only for | 195 // Schedules a scroll of the plugin. This uses optimized scrolling only for |
196 // full-frame plugins, as otherwise there could be other elements on top. The | 196 // full-frame plugins, as otherwise there could be other elements on top. The |
197 // slow path can also be triggered if there is an overlapping frame. | 197 // slow path can also be triggered if there is an overlapping frame. |
198 void ScrollRect(int dx, int dy, const gfx::Rect& rect); | 198 void ScrollRect(int dx, int dy, const gfx::Rect& rect); |
199 | 199 |
200 // Commit the backing texture to the screen once the side effects some | 200 // Commit the backing texture to the screen once the side effects some |
201 // rendering up to an offscreen SwapBuffers are visible. | 201 // rendering up to an offscreen SwapBuffers are visible. |
202 void CommitBackingTexture(); | 202 void CommitBackingTexture(); |
203 | 203 |
| 204 // Takes ownership of the front buffer of |bound_graphics_3d_| and passes it |
| 205 // to |texture_layer_|. |
| 206 void PassTextureFromGraphics3DToTextureLayer(); |
| 207 |
204 // Called when the out-of-process plugin implementing this instance crashed. | 208 // Called when the out-of-process plugin implementing this instance crashed. |
205 void InstanceCrashed(); | 209 void InstanceCrashed(); |
206 | 210 |
207 // PPB_Instance and PPB_Instance_Private implementation. | 211 // PPB_Instance and PPB_Instance_Private implementation. |
208 bool full_frame() const { return full_frame_; } | 212 bool full_frame() const { return full_frame_; } |
209 const ppapi::ViewData& view_data() const { return view_data_; } | 213 const ppapi::ViewData& view_data() const { return view_data_; } |
210 | 214 |
211 // PPP_Instance and PPP_Instance_Private. | 215 // PPP_Instance and PPP_Instance_Private. |
212 bool Initialize(const std::vector<std::string>& arg_names, | 216 bool Initialize(const std::vector<std::string>& arg_names, |
213 const std::vector<std::string>& arg_values, | 217 const std::vector<std::string>& arg_values, |
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
942 // view change events. | 946 // view change events. |
943 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; | 947 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; |
944 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; | 948 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; |
945 | 949 |
946 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); | 950 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); |
947 }; | 951 }; |
948 | 952 |
949 } // namespace content | 953 } // namespace content |
950 | 954 |
951 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 955 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
OLD | NEW |