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_PLUGIN_WEBPLUGIN_PROXY_H_ | 5 #ifndef CONTENT_PLUGIN_WEBPLUGIN_PROXY_H_ |
6 #define CONTENT_PLUGIN_WEBPLUGIN_PROXY_H_ | 6 #define CONTENT_PLUGIN_WEBPLUGIN_PROXY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/hash_tables.h" | 10 #include "base/hash_tables.h" |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 // fields are for the front-buffer and back-buffer of a buffer flipping system | 273 // fields are for the front-buffer and back-buffer of a buffer flipping system |
274 // and windowless_buffer_index_ identifies which set we are using as the | 274 // and windowless_buffer_index_ identifies which set we are using as the |
275 // back-buffer at any given time. | 275 // back-buffer at any given time. |
276 int windowless_buffer_index_; | 276 int windowless_buffer_index_; |
277 #if defined(OS_MACOSX) | 277 #if defined(OS_MACOSX) |
278 scoped_ptr<TransportDIB> windowless_dibs_[2]; | 278 scoped_ptr<TransportDIB> windowless_dibs_[2]; |
279 base::mac::ScopedCFTypeRef<CGContextRef> windowless_contexts_[2]; | 279 base::mac::ScopedCFTypeRef<CGContextRef> windowless_contexts_[2]; |
280 scoped_ptr<WebPluginAcceleratedSurfaceProxy> accelerated_surface_; | 280 scoped_ptr<WebPluginAcceleratedSurfaceProxy> accelerated_surface_; |
281 #else | 281 #else |
282 skia::RefPtr<SkCanvas> windowless_canvases_[2]; | 282 skia::RefPtr<SkCanvas> windowless_canvases_[2]; |
283 skia::RefPtr<SkCanvas> background_canvas_; | |
284 | 283 |
285 #if defined(USE_X11) | 284 #if defined(USE_X11) |
286 scoped_refptr<SharedTransportDIB> windowless_dibs_[2]; | 285 scoped_refptr<SharedTransportDIB> windowless_dibs_[2]; |
287 // If we can use SHM pixmaps for windowless plugin painting or not. | 286 // If we can use SHM pixmaps for windowless plugin painting or not. |
288 bool use_shm_pixmap_; | 287 bool use_shm_pixmap_; |
289 // The SHM pixmaps for windowless plugin painting. | 288 // The SHM pixmaps for windowless plugin painting. |
290 XID windowless_shm_pixmaps_[2]; | 289 XID windowless_shm_pixmaps_[2]; |
291 #endif | 290 #endif |
292 | 291 |
293 #endif | 292 #endif |
294 | 293 |
295 // Contains the routing id of the host render view. | 294 // Contains the routing id of the host render view. |
296 int host_render_view_routing_id_; | 295 int host_render_view_routing_id_; |
297 | 296 |
298 base::WeakPtrFactory<WebPluginProxy> weak_factory_; | 297 base::WeakPtrFactory<WebPluginProxy> weak_factory_; |
299 }; | 298 }; |
300 | 299 |
301 } // namespace content | 300 } // namespace content |
302 | 301 |
303 #endif // CONTENT_PLUGIN_WEBPLUGIN_PROXY_H_ | 302 #endif // CONTENT_PLUGIN_WEBPLUGIN_PROXY_H_ |
OLD | NEW |