diff options
author | penghuang@chromium.org <penghuang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-16 14:20:26 +0000 |
---|---|---|
committer | penghuang@chromium.org <penghuang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-16 14:20:26 +0000 |
commit | c44620b2cb57378a518ee97427e7c3d319507c8d (patch) | |
tree | ccc8f088aab4dc3758fc71de6b9eca133e3637c9 /ppapi/host | |
parent | d765198b19590e158a609cc34c29af39b6cd9e9d (diff) | |
download | chromium_src-c44620b2cb57378a518ee97427e7c3d319507c8d.zip chromium_src-c44620b2cb57378a518ee97427e7c3d319507c8d.tar.gz chromium_src-c44620b2cb57378a518ee97427e7c3d319507c8d.tar.bz2 |
[PPAPI] Compositor API implementation.
Implement the compositor API which allows a plugin to combine different sources of visual data efficiently, such as PPB_ImageData and OpengGL texture.
API Proposal http://goo.gl/V7xcu3
BUG=374383
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=277208
Review URL: https://codereview.chromium.org/298023004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@277422 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/host')
-rw-r--r-- | ppapi/host/resource_host.cc | 4 | ||||
-rw-r--r-- | ppapi/host/resource_host.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/ppapi/host/resource_host.cc b/ppapi/host/resource_host.cc index b453398..2d5af58 100644 --- a/ppapi/host/resource_host.cc +++ b/ppapi/host/resource_host.cc @@ -48,6 +48,10 @@ void ResourceHost::SendReply(const ReplyMessageContext& context, host_->SendReply(context, msg); } +bool ResourceHost::IsCompositorHost() { + return false; +} + bool ResourceHost::IsFileRefHost() { return false; } diff --git a/ppapi/host/resource_host.h b/ppapi/host/resource_host.h index a9518ee..a2d3885 100644 --- a/ppapi/host/resource_host.h +++ b/ppapi/host/resource_host.h @@ -56,6 +56,7 @@ class PPAPI_HOST_EXPORT ResourceHost : public ResourceMessageHandler { // Simple RTTI. A subclass that is a host for one of these APIs will override // the appropriate function and return true. + virtual bool IsCompositorHost(); virtual bool IsFileRefHost(); virtual bool IsFileSystemHost(); virtual bool IsGraphics2DHost(); |