summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/compositor_layer_resource.cc
blob: 829ff187391503fd4141c9eb5a11a5459728eb42 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// Copyright 2014 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.

#include "ppapi/proxy/compositor_layer_resource.h"

namespace ppapi {
namespace proxy {

CompositorLayerResource::CompositorLayerResource(Connection connection,
                                       PP_Instance instance)
    : PluginResource(connection, instance) {
}

CompositorLayerResource::~CompositorLayerResource() {
}

thunk::PPB_CompositorLayer_API*
CompositorLayerResource::AsPPB_CompositorLayer_API() {
  return this;
}

int32_t CompositorLayerResource::SetColor(float red,
                                          float green,
                                          float blue,
                                          float alpha,
                                          const PP_Size* size) {
  return PP_ERROR_NOTSUPPORTED;
}

int32_t CompositorLayerResource::SetTexture(
    PP_Resource context,
    uint32_t texture,
    const PP_Size* size,
    const scoped_refptr<ppapi::TrackedCallback>& callback) {
  return PP_ERROR_NOTSUPPORTED;
}

int32_t CompositorLayerResource::SetImage(
    PP_Resource image_data,
    const PP_Size* size,
    const scoped_refptr<ppapi::TrackedCallback>& callback) {
  return PP_ERROR_NOTSUPPORTED;
}

int32_t CompositorLayerResource::SetClipRect(const PP_Rect* rect) {
  return PP_ERROR_NOTSUPPORTED;
}

int32_t CompositorLayerResource::SetTransform(const float matrix[16]) {
  return PP_ERROR_NOTSUPPORTED;
}

int32_t CompositorLayerResource::SetOpacity(float opacity) {
  return PP_ERROR_NOTSUPPORTED;
}

int32_t CompositorLayerResource::SetBlendMode(PP_BlendMode mode) {
  return PP_ERROR_NOTSUPPORTED;
}

int32_t CompositorLayerResource::SetSourceRect(
    const PP_FloatRect* rect) {
  return PP_ERROR_NOTSUPPORTED;
}

int32_t CompositorLayerResource::SetPremultipliedAlpha(PP_Bool premult) {
  return PP_ERROR_NOTSUPPORTED;
}

}  // namespace proxy
}  // namespace ppapi