diff options
Diffstat (limited to 'content/renderer')
-rw-r--r-- | content/renderer/pepper/pepper_platform_context_3d_impl.cc | 4 | ||||
-rw-r--r-- | content/renderer/pepper/pepper_platform_context_3d_impl.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/content/renderer/pepper/pepper_platform_context_3d_impl.cc b/content/renderer/pepper/pepper_platform_context_3d_impl.cc index 41ad54c..1fede2b 100644 --- a/content/renderer/pepper/pepper_platform_context_3d_impl.cc +++ b/content/renderer/pepper/pepper_platform_context_3d_impl.cc @@ -188,6 +188,10 @@ unsigned PlatformContext3DImpl::GetBackingTextureId() { return parent_texture_id_; } +WebKit::WebGraphicsContext3D* PlatformContext3DImpl::GetParentContext() { + return parent_context_.get(); +} + bool PlatformContext3DImpl::IsOpaque() { DCHECK(command_buffer_); return !has_alpha_; diff --git a/content/renderer/pepper/pepper_platform_context_3d_impl.h b/content/renderer/pepper/pepper_platform_context_3d_impl.h index 4c76c1e..f5ae686 100644 --- a/content/renderer/pepper/pepper_platform_context_3d_impl.h +++ b/content/renderer/pepper/pepper_platform_context_3d_impl.h @@ -34,6 +34,7 @@ class PlatformContext3DImpl virtual bool Init(const int32* attrib_list, PlatformContext3D* share_context) OVERRIDE; virtual unsigned GetBackingTextureId() OVERRIDE; + virtual WebKit::WebGraphicsContext3D* GetParentContext() OVERRIDE; virtual bool IsOpaque() OVERRIDE; virtual gpu::CommandBuffer* GetCommandBuffer() OVERRIDE; virtual int GetCommandBufferRouteId() OVERRIDE; |