blob: 7d3a02362d71be81eb61c9dfe2817a7c01a2f01d (
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
|
// 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_LAYER_COMPOSITOR_IMPL_H_
#define WEBKIT_PLUGINS_PPAPI_PPB_LAYER_COMPOSITOR_IMPL_H_
#include "ppapi/c/dev/ppb_layer_compositor_dev.h"
#include "webkit/plugins/ppapi/resource.h"
struct PP_Rect;
struct PP_Size;
namespace webkit {
namespace ppapi {
class PluginInstance;
class PPB_LayerCompositor_Impl : public Resource {
public:
explicit PPB_LayerCompositor_Impl(PluginInstance* instance);
virtual ~PPB_LayerCompositor_Impl();
static const PPB_LayerCompositor_Dev* GetInterface();
// Resource override.
virtual PPB_LayerCompositor_Impl* AsPPB_LayerCompositor_Impl();
PP_Bool AddLayer(PP_Resource layer);
void RemoveLayer(PP_Resource layer);
void SetZIndex(PP_Resource layer, int32_t index);
void SetRect(PP_Resource layer, const struct PP_Rect* rect);
void SetDisplay(PP_Resource layer, PP_Bool is_displayed);
void MarkAsDirty(PP_Resource layer);
int32_t SwapBuffers(struct PP_CompletionCallback callback);
private:
DISALLOW_COPY_AND_ASSIGN(PPB_LayerCompositor_Impl);
};
} // namespace ppapi
} // namespace webkit
#endif // WEBKIT_PLUGINS_PPAPI_PPB_LAYER_COMPOSITOR_IMPL_H_
|