summaryrefslogtreecommitdiffstats
path: root/webkit/plugins/ppapi/ppb_video_layer_software.h
blob: 6367cd1c614b5c0336ccd87ee62b06d21792cf74 (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
// 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"

namespace webkit {
namespace ppapi {

class PPB_VideoLayer_Software : public PPB_VideoLayer_Impl {
 public:
  explicit PPB_VideoLayer_Software(PP_Instance 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_