OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_PLUGIN_WEBPLUGIN_PROXY_H_ | 5 #ifndef CHROME_PLUGIN_WEBPLUGIN_PROXY_H_ |
6 #define CHROME_PLUGIN_WEBPLUGIN_PROXY_H_ | 6 #define CHROME_PLUGIN_WEBPLUGIN_PROXY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 WebPluginDelegateImpl* delegate_; | 198 WebPluginDelegateImpl* delegate_; |
199 gfx::Rect damaged_rect_; | 199 gfx::Rect damaged_rect_; |
200 bool waiting_for_paint_; | 200 bool waiting_for_paint_; |
201 gfx::NativeViewId containing_window_; | 201 gfx::NativeViewId containing_window_; |
202 // The url of the main frame hosting the plugin. | 202 // The url of the main frame hosting the plugin. |
203 GURL page_url_; | 203 GURL page_url_; |
204 | 204 |
205 // Variables used for desynchronized windowless plugin painting. See note in | 205 // Variables used for desynchronized windowless plugin painting. See note in |
206 // webplugin_delegate_proxy.h for how this works. | 206 // webplugin_delegate_proxy.h for how this works. |
207 bool transparent_; | 207 bool transparent_; |
208 #if defined(OS_MACOSX) | |
209 scoped_ptr<TransportDIB> windowless_dib_; | 208 scoped_ptr<TransportDIB> windowless_dib_; |
210 scoped_ptr<TransportDIB> background_dib_; | 209 scoped_ptr<TransportDIB> background_dib_; |
| 210 #if defined(OS_MACOSX) |
211 base::mac::ScopedCFTypeRef<CGContextRef> windowless_context_; | 211 base::mac::ScopedCFTypeRef<CGContextRef> windowless_context_; |
212 base::mac::ScopedCFTypeRef<CGContextRef> background_context_; | 212 base::mac::ScopedCFTypeRef<CGContextRef> background_context_; |
213 scoped_ptr<WebPluginAcceleratedSurfaceProxy> accelerated_surface_; | 213 scoped_ptr<WebPluginAcceleratedSurfaceProxy> accelerated_surface_; |
214 #else | 214 #else |
215 scoped_ptr<skia::PlatformCanvas> windowless_canvas_; | 215 scoped_ptr<skia::PlatformCanvas> windowless_canvas_; |
216 scoped_ptr<skia::PlatformCanvas> background_canvas_; | 216 scoped_ptr<skia::PlatformCanvas> background_canvas_; |
217 | 217 |
218 #if defined(USE_X11) | 218 #if defined(USE_X11) |
219 scoped_ptr<TransportDIB> windowless_dib_; | |
220 scoped_ptr<TransportDIB> background_dib_; | |
221 // If we can use SHM pixmaps for windowless plugin painting or not. | 219 // If we can use SHM pixmaps for windowless plugin painting or not. |
222 bool use_shm_pixmap_; | 220 bool use_shm_pixmap_; |
223 // The SHM pixmap for windowless plugin painting. | 221 // The SHM pixmap for windowless plugin painting. |
224 XID windowless_shm_pixmap_; | 222 XID windowless_shm_pixmap_; |
225 #endif | 223 #endif |
226 | 224 |
227 #endif | 225 #endif |
228 | 226 |
229 // Contains the routing id of the host render view. | 227 // Contains the routing id of the host render view. |
230 int host_render_view_routing_id_; | 228 int host_render_view_routing_id_; |
231 | 229 |
232 ScopedRunnableMethodFactory<WebPluginProxy> runnable_method_factory_; | 230 ScopedRunnableMethodFactory<WebPluginProxy> runnable_method_factory_; |
233 }; | 231 }; |
234 | 232 |
235 #endif // CHROME_PLUGIN_WEBPLUGIN_PROXY_H_ | 233 #endif // CHROME_PLUGIN_WEBPLUGIN_PROXY_H_ |
OLD | NEW |