summaryrefslogtreecommitdiffstats
path: root/webkit/plugins/ppapi/ppb_video_layer_software.h
blob: a1b901b92eb9ab8be6d7136916001af1954da77d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_LAYER_SOFTWARE_H_
#define WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_LAYER_SOFTWARE_H_

#include "webkit/plugins/ppapi/ppb_video_layer_impl.h"
#include "webkit/plugins/ppapi/resource.h"

namespace webkit {
namespace ppapi {

class PluginInstance;

class PPB_VideoLayer_Software : public PPB_VideoLayer_Impl {
 public:
  explicit PPB_VideoLayer_Software(PluginInstance* instance);
  virtual ~PPB_VideoLayer_Software();

  // PPB_VideoLayer_Impl implementations.
  virtual void SetPixelFormat(PP_VideoLayerPixelFormat_Dev pixel_format);
  virtual void SetNativeSize(const PP_Size* size);
  virtual void SetClipRect(const PP_Rect* clip_rect);
  virtual PP_Bool IsReady();
  virtual PP_Bool UpdateContent(uint32_t no_of_planes, const void** planes);

 private:
  DISALLOW_COPY_AND_ASSIGN(PPB_VideoLayer_Software);
};

}  // namespace ppapi
}  // namespace webkit

#endif  // WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_LAYER_SOFTWARE_H_