Pepper_56_C++_interfaces
Pepper_56_C++_interfaces
 All Classes Namespaces Files Functions Typedefs Enumerations Macros Groups
compositor.h
Go to the documentation of this file.
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef PPAPI_CPP_COMPOSITOR_H_
6 #define PPAPI_CPP_COMPOSITOR_H_
7 
8 #include <stdint.h>
9 
10 #include "ppapi/c/ppb_compositor.h"
12 #include "ppapi/cpp/compositor_layer.h"
13 #include "ppapi/cpp/resource.h"
14 
17 namespace pp {
18 
24 class Compositor : public Resource {
25  public:
28  Compositor();
29 
33  explicit Compositor(const InstanceHandle& instance);
34 
38  Compositor(const Compositor& other);
39 
43  explicit Compositor(const Resource& resource);
44 
49  Compositor(PassRef, PP_Resource resource);
50 
52  ~Compositor();
53 
66 
74  int32_t CommitLayers(const CompletionCallback& cc);
75 
79  int32_t ResetLayers();
80 
87  static bool IsCompositor(const Resource& resource);
88 };
89 
90 } // namespace pp
91 
92 #endif // PPAPI_CPP_COMPOSITOR_H_
~Compositor()
Destructor.
int32_t ResetLayers()
CompositorLayer AddLayer()
Definition: completion_callback.h:26
Definition: instance_handle.h:44
PassRef
Definition: pass_ref.h:17
int32_t CommitLayers(const CompletionCallback &cc)
Definition: compositor_layer.h:19
A reference counted module resource.
Definition: resource.h:20
static bool IsCompositor(const Resource &resource)
Definition: compositor.h:24