diff options
author | Andras Becsi <andras.becsi@digia.com> | 2014-03-18 13:16:26 +0100 |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@digia.com> | 2014-03-20 15:55:39 +0100 |
commit | 3f0f86b0caed75241fa71c95a5d73bc0164348c5 (patch) | |
tree | 92b9fb00f2e9e90b0be2262093876d4f43b6cd13 /chromium/ppapi/proxy/ppapi_command_buffer_proxy.cc | |
parent | e90d7c4b152c56919d963987e2503f9909a666d2 (diff) | |
download | qtwebengine-chromium-3f0f86b0caed75241fa71c95a5d73bc0164348c5.tar.gz |
Update to new stable branch 1750
This also includes an updated ninja and chromium dependencies
needed on Windows.
Change-Id: Icd597d80ed3fa4425933c9f1334c3c2e31291c42
Reviewed-by: Zoltan Arvai <zarvai@inf.u-szeged.hu>
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
Diffstat (limited to 'chromium/ppapi/proxy/ppapi_command_buffer_proxy.cc')
-rw-r--r-- | chromium/ppapi/proxy/ppapi_command_buffer_proxy.cc | 84 |
1 files changed, 54 insertions, 30 deletions
diff --git a/chromium/ppapi/proxy/ppapi_command_buffer_proxy.cc b/chromium/ppapi/proxy/ppapi_command_buffer_proxy.cc index 8ca17e442d1..a6da210795d 100644 --- a/chromium/ppapi/proxy/ppapi_command_buffer_proxy.cc +++ b/chromium/ppapi/proxy/ppapi_command_buffer_proxy.cc @@ -8,6 +8,7 @@ #include "ppapi/proxy/proxy_channel.h" #include "ppapi/shared_impl/api_id.h" #include "ppapi/shared_impl/host_resource.h" +#include "ppapi/shared_impl/proxy_lock.h" namespace ppapi { namespace proxy { @@ -29,32 +30,6 @@ PpapiCommandBufferProxy::~PpapiCommandBufferProxy() { } } -void PpapiCommandBufferProxy::ReportChannelError() { - if (!channel_error_callback_.is_null()) { - channel_error_callback_.Run(); - channel_error_callback_.Reset(); - } -} - -int PpapiCommandBufferProxy::GetRouteID() const { - NOTIMPLEMENTED(); - return 0; -} - -bool PpapiCommandBufferProxy::Echo(const base::Closure& callback) { - return false; -} - -bool PpapiCommandBufferProxy::ProduceFrontBuffer(const gpu::Mailbox& mailbox) { - NOTIMPLEMENTED(); - return false; -} - -void PpapiCommandBufferProxy::SetChannelErrorCallback( - const base::Closure& callback) { - channel_error_callback_ = callback; -} - bool PpapiCommandBufferProxy::Initialize() { return true; } @@ -74,14 +49,12 @@ gpu::CommandBuffer::State PpapiCommandBufferProxy::GetState() { } gpu::CommandBuffer::State PpapiCommandBufferProxy::GetLastState() { - // Note: The locking command buffer wrapper does not take a global lock before - // calling this function. + ppapi::ProxyLock::AssertAcquiredDebugOnly(); return last_state_; } int32 PpapiCommandBufferProxy::GetLastToken() { - // Note: The locking command buffer wrapper does not take a global lock before - // calling this function. + ppapi::ProxyLock::AssertAcquiredDebugOnly(); return last_state_.token; } @@ -166,6 +139,10 @@ void PpapiCommandBufferProxy::DestroyTransferBuffer(int32 id) { ppapi::API_ID_PPB_GRAPHICS_3D, resource_, id)); } +void PpapiCommandBufferProxy::Echo(const base::Closure& callback) { + NOTREACHED(); +} + gpu::Buffer PpapiCommandBufferProxy::GetTransferBuffer(int32 id) { if (last_state_.error != gpu::error::kNoError) return gpu::Buffer(); @@ -230,6 +207,53 @@ uint32 PpapiCommandBufferProxy::InsertSyncPoint() { return sync_point; } +void PpapiCommandBufferProxy::SignalSyncPoint(uint32 sync_point, + const base::Closure& callback) { + NOTREACHED(); +} + +void PpapiCommandBufferProxy::SignalQuery(uint32 query, + const base::Closure& callback) { + NOTREACHED(); +} + +void PpapiCommandBufferProxy::SetSurfaceVisible(bool visible) { + NOTREACHED(); +} + +void PpapiCommandBufferProxy::SendManagedMemoryStats( + const gpu::ManagedMemoryStats& stats) { + NOTREACHED(); +} + +gpu::Capabilities PpapiCommandBufferProxy::GetCapabilities() { + // TODO(boliu): Need to implement this to use cc in Pepper. Tracked in + // crbug.com/325391. + return gpu::Capabilities(); +} + +gfx::GpuMemoryBuffer* PpapiCommandBufferProxy::CreateGpuMemoryBuffer( + size_t width, + size_t height, + unsigned internalformat, + int32* id) { + NOTREACHED(); + return NULL; +} + +void PpapiCommandBufferProxy::DestroyGpuMemoryBuffer(int32 id) { + NOTREACHED(); +} + +bool PpapiCommandBufferProxy::GenerateMailboxNames( + unsigned num, std::vector<gpu::Mailbox>* names) { + // TODO(piman): implement this so we can expose mailboxes to pepper + // eventually. + NOTREACHED(); + return false; +} + + bool PpapiCommandBufferProxy::Send(IPC::Message* msg) { DCHECK(last_state_.error == gpu::error::kNoError); |