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 WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_ACCELERATED_SURFACE_MAC_H_ | 5 #ifndef WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_ACCELERATED_SURFACE_MAC_H_ |
6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_ACCELERATED_SURFACE_MAC_H_ | 6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_ACCELERATED_SURFACE_MAC_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
10 #include "gfx/size.h" | 10 #include "ui/gfx/size.h" |
11 | 11 |
12 // Avoid having to include OpenGL headers here. | 12 // Avoid having to include OpenGL headers here. |
13 typedef struct _CGLContextObject* CGLContextObj; | 13 typedef struct _CGLContextObject* CGLContextObj; |
14 | 14 |
15 namespace webkit { | 15 namespace webkit { |
16 namespace npapi { | 16 namespace npapi { |
17 | 17 |
18 // Interface class for interacting with an accelerated plugin surface, used | 18 // Interface class for interacting with an accelerated plugin surface, used |
19 // for the Core Animation flavors of plugin drawing on the Mac. | 19 // for the Core Animation flavors of plugin drawing on the Mac. |
20 class WebPluginAcceleratedSurface { | 20 class WebPluginAcceleratedSurface { |
(...skipping 16 matching lines...) Expand all Loading... |
37 | 37 |
38 // Ends a drawing session. Changes to the surface may not be reflected until | 38 // Ends a drawing session. Changes to the surface may not be reflected until |
39 // this is called. | 39 // this is called. |
40 virtual void EndDrawing() = 0; | 40 virtual void EndDrawing() = 0; |
41 }; | 41 }; |
42 | 42 |
43 } // namespace npapi | 43 } // namespace npapi |
44 } // namespace webkit | 44 } // namespace webkit |
45 | 45 |
46 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_ACCELERATED_SURFACE_MAC_H_ | 46 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_ACCELERATED_SURFACE_MAC_H_ |
OLD | NEW |