|
Pepper_47_C++_interfaces
|
#include <compositor.h>


Public Member Functions | |
| Compositor () | |
| Compositor (const InstanceHandle &instance) | |
| Compositor (const Compositor &other) | |
| Compositor (const Resource &resource) | |
| Compositor (PassRef, PP_Resource resource) | |
| ~Compositor () | |
| Destructor. More... | |
| CompositorLayer | AddLayer () |
| int32_t | CommitLayers (const CompletionCallback &cc) |
| int32_t | ResetLayers () |
Public Member Functions inherited from pp::Resource | |
| Resource () | |
| The default constructor. More... | |
| Resource (const Resource &other) | |
| virtual | ~Resource () |
| Destructor. More... | |
| Resource & | operator= (const Resource &other) |
| bool | is_null () const |
| PP_Resource | pp_resource () const |
| PP_Resource | detach () |
Static Public Member Functions | |
| static bool | IsCompositor (const Resource &resource) |
Additional Inherited Members | |
Protected Member Functions inherited from pp::Resource | |
| Resource (PP_Resource resource) | |
| Resource (PassRef, PP_Resource resource) | |
| void | PassRefFromConstructor (PP_Resource resource) |
| void | Clear () |
| Sets this resource to null. This releases ownership of the resource. More... | |
The Compositor interface is used for setting CompositorLayer layers to the Chromium compositor for compositing. This allows a plugin to combine different sources of visual data efficiently, such as ImageData images and OpenGL textures. See also CompositorLayer for more information.
Definition at line 22 of file compositor.h.
| pp::Compositor::Compositor | ( | ) |
Default constructor for creating an is_null() Compositor object.
Definition at line 22 of file compositor.cc.
|
explicit |
A constructor for creating and initializing a compositor.
On failure, the object will be is_null().
Definition at line 25 of file compositor.cc.
References pp::Resource::PassRefFromConstructor(), and pp::InstanceHandle::pp_instance().
| pp::Compositor::Compositor | ( | const Compositor & | other | ) |
The copy constructor for Compositor.
| [in] | other | A reference to a Compositor. |
Definition at line 32 of file compositor.cc.
|
explicit |
Constructs a Compositor from a Resource.
| [in] | resource | A PPB_Compositor resource. |
Definition at line 36 of file compositor.cc.
References IsCompositor(), and PP_DCHECK.
| pp::Compositor::Compositor | ( | PassRef | , |
| PP_Resource | resource | ||
| ) |
A constructor used when you have received a PP_Resource as a return value that has had 1 ref added on behalf of the caller.
| [in] | resource | A PPB_Compositor resource. |
Definition at line 41 of file compositor.cc.
| pp::Compositor::~Compositor | ( | ) |
Destructor.
Definition at line 45 of file compositor.cc.
| CompositorLayer pp::Compositor::AddLayer | ( | ) |
Creates a new CompositorLayer and adds it to the end of the layer stack. A CompositorLayer containing the layer is returned. It is uninitialized, SetColor(), SetTexture or SetImage should be used to initialize it. The layer will appear above other pre-existing layers. If ResetLayers is called or the PPB_Compositor is released, the returned layer will be invalidated, and any further calls on the layer will return PP_ERROR_BADRESOURCE.
CompositorLayer containing the compositor layer resource. Definition at line 48 of file compositor.cc.
References pp::PASS_REF, and pp::Resource::pp_resource().
| int32_t pp::Compositor::CommitLayers | ( | const CompletionCallback & | cc | ) |
Commits layers added by AddLayer() to the chromium compositor.
| [in] | cc | A CompletionCallback to be called when layers have been represented on screen. |
pp_errors.h. Definition at line 56 of file compositor.cc.
References pp::CompletionCallback::MayForce(), pp::CompletionCallback::pp_completion_callback(), and pp::Resource::pp_resource().
Checks whether a Resource is a compositor, to test whether it is appropriate for use with the Compositor constructor.
| [in] | resource | A Resource to test. |
resource is a compositor. Definition at line 71 of file compositor.cc.
References pp::Resource::pp_resource().
Referenced by Compositor().
| int32_t pp::Compositor::ResetLayers | ( | ) |
Resets layers added by AddLayer()
pp_errors.h. Definition at line 64 of file compositor.cc.
References pp::Resource::pp_resource().
1.8.6