| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PPAPI_PPB_VIDEO_LAYER_SOFTWARE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_LAYER_SOFTWARE_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_LAYER_SOFTWARE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_LAYER_SOFTWARE_H_ |
| 7 | 7 |
| 8 #include "webkit/plugins/ppapi/ppb_video_layer_impl.h" | 8 #include "webkit/plugins/ppapi/ppb_video_layer_impl.h" |
| 9 #include "webkit/plugins/ppapi/resource.h" | |
| 10 | 9 |
| 11 namespace webkit { | 10 namespace webkit { |
| 12 namespace ppapi { | 11 namespace ppapi { |
| 13 | 12 |
| 14 class PluginInstance; | |
| 15 | |
| 16 class PPB_VideoLayer_Software : public PPB_VideoLayer_Impl { | 13 class PPB_VideoLayer_Software : public PPB_VideoLayer_Impl { |
| 17 public: | 14 public: |
| 18 explicit PPB_VideoLayer_Software(PluginInstance* instance); | 15 explicit PPB_VideoLayer_Software(PP_Instance instance); |
| 19 virtual ~PPB_VideoLayer_Software(); | 16 virtual ~PPB_VideoLayer_Software(); |
| 20 | 17 |
| 21 // PPB_VideoLayer_Impl implementations. | 18 // PPB_VideoLayer_Impl implementations. |
| 22 virtual void SetPixelFormat(PP_VideoLayerPixelFormat_Dev pixel_format); | 19 virtual void SetPixelFormat(PP_VideoLayerPixelFormat_Dev pixel_format); |
| 23 virtual void SetNativeSize(const PP_Size* size); | 20 virtual void SetNativeSize(const PP_Size* size); |
| 24 virtual void SetClipRect(const PP_Rect* clip_rect); | 21 virtual void SetClipRect(const PP_Rect* clip_rect); |
| 25 virtual PP_Bool IsReady(); | 22 virtual PP_Bool IsReady(); |
| 26 virtual PP_Bool UpdateContent(uint32_t no_of_planes, const void** planes); | 23 virtual PP_Bool UpdateContent(uint32_t no_of_planes, const void** planes); |
| 27 | 24 |
| 28 private: | 25 private: |
| 29 DISALLOW_COPY_AND_ASSIGN(PPB_VideoLayer_Software); | 26 DISALLOW_COPY_AND_ASSIGN(PPB_VideoLayer_Software); |
| 30 }; | 27 }; |
| 31 | 28 |
| 32 } // namespace ppapi | 29 } // namespace ppapi |
| 33 } // namespace webkit | 30 } // namespace webkit |
| 34 | 31 |
| 35 #endif // WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_LAYER_SOFTWARE_H_ | 32 #endif // WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_LAYER_SOFTWARE_H_ |
| OLD | NEW |