OLD | NEW |
1 // Copyright (c) 2011 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_ACCELERATED_SURFACE_PROXY_H_ | 5 #ifndef CONTENT_PLUGIN_WEBPLUGIN_ACCELERATED_SURFACE_PROXY_H_ |
6 #define CONTENT_PLUGIN_WEBPLUGIN_ACCELERATED_SURFACE_PROXY_H_ | 6 #define CONTENT_PLUGIN_WEBPLUGIN_ACCELERATED_SURFACE_PROXY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "ui/gfx/gl/gpu_preference.h" | 10 #include "ui/gl/gpu_preference.h" |
11 #include "webkit/plugins/npapi/webplugin_accelerated_surface_mac.h" | 11 #include "webkit/plugins/npapi/webplugin_accelerated_surface_mac.h" |
12 | 12 |
13 class WebPluginProxy; | 13 class WebPluginProxy; |
14 class AcceleratedSurface; | 14 class AcceleratedSurface; |
15 | 15 |
16 // Out-of-process implementation of WebPluginAcceleratedSurface that proxies | 16 // Out-of-process implementation of WebPluginAcceleratedSurface that proxies |
17 // calls through a WebPluginProxy. | 17 // calls through a WebPluginProxy. |
18 class WebPluginAcceleratedSurfaceProxy | 18 class WebPluginAcceleratedSurfaceProxy |
19 : public webkit::npapi::WebPluginAcceleratedSurface { | 19 : public webkit::npapi::WebPluginAcceleratedSurface { |
20 public: | 20 public: |
(...skipping 21 matching lines...) Expand all Loading... |
42 | 42 |
43 WebPluginProxy* plugin_proxy_; // Weak ref. | 43 WebPluginProxy* plugin_proxy_; // Weak ref. |
44 gfx::PluginWindowHandle window_handle_; | 44 gfx::PluginWindowHandle window_handle_; |
45 AcceleratedSurface* surface_; | 45 AcceleratedSurface* surface_; |
46 bool composited_; | 46 bool composited_; |
47 | 47 |
48 DISALLOW_COPY_AND_ASSIGN(WebPluginAcceleratedSurfaceProxy); | 48 DISALLOW_COPY_AND_ASSIGN(WebPluginAcceleratedSurfaceProxy); |
49 }; | 49 }; |
50 | 50 |
51 #endif // CONTENT_PLUGIN_WEBPLUGIN_ACCELERATED_SURFACE_PROXY_H_ | 51 #endif // CONTENT_PLUGIN_WEBPLUGIN_ACCELERATED_SURFACE_PROXY_H_ |
OLD | NEW |