diff options
author | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-14 21:50:00 +0000 |
---|---|---|
committer | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-14 21:50:00 +0000 |
commit | a1de87d247f02b4ca61e609804d075b7fe0717cb (patch) | |
tree | 7c061457d8d2388c8f31d388b5c4eebef2978905 /gpu/pgl/command_buffer_pepper.h | |
parent | e18f419b689ca8f560c1c02abb987ff25f2038b5 (diff) | |
download | chromium_src-a1de87d247f02b4ca61e609804d075b7fe0717cb.zip chromium_src-a1de87d247f02b4ca61e609804d075b7fe0717cb.tar.gz chromium_src-a1de87d247f02b4ca61e609804d075b7fe0717cb.tar.bz2 |
Revert 36268 - Implemented PGL library, an EGL like API for Pepper. Updated Pepper test plugin to use it.
TEST=none yet
BUG=none
Review URL: http://codereview.chromium.org/545052
TBR=alokp@chromium.org
Review URL: http://codereview.chromium.org/550048
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36270 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/pgl/command_buffer_pepper.h')
-rw-r--r-- | gpu/pgl/command_buffer_pepper.h | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/gpu/pgl/command_buffer_pepper.h b/gpu/pgl/command_buffer_pepper.h deleted file mode 100644 index ab114e3..0000000 --- a/gpu/pgl/command_buffer_pepper.h +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef GPU_PGL_COMMAND_BUFFER_PEPPER_H -#define GPU_PGL_COMMAND_BUFFER_PEPPER_H - -#include "gpu/command_buffer/common/command_buffer.h" -#include "third_party/npapi/bindings/npapi.h" -#include "third_party/npapi/bindings/npruntime.h" -#include "webkit/glue/plugins/nphostapi.h" - -// A CommandBuffer proxy implementation that uses the Pepper API to access -// the command buffer. - -class CommandBufferPepper : public gpu::CommandBuffer { - public: - CommandBufferPepper(NPP npp, - NPDevice* device, - NPDeviceContext3D* device_context); - virtual ~CommandBufferPepper(); - - // CommandBuffer implementation. - virtual bool Initialize(int32 size); - virtual gpu::Buffer GetRingBuffer(); - virtual int32 GetSize(); - virtual int32 SyncOffsets(int32 put_offset); - virtual int32 GetGetOffset(); - virtual void SetGetOffset(int32 get_offset); - virtual int32 GetPutOffset(); - virtual int32 CreateTransferBuffer(size_t size); - virtual void DestroyTransferBuffer(int32 id); - virtual gpu::Buffer GetTransferBuffer(int32 handle); - virtual int32 GetToken(); - virtual void SetToken(int32 token); - virtual int32 ResetParseError(); - virtual void SetParseError(int32 parse_error); - virtual bool GetErrorStatus(); - virtual void RaiseErrorStatus(); - - private: - NPP npp_; - NPDevice* device_; - NPDeviceContext3D* context_; -}; - -#endif // GPU_PGL_COMMAND_BUFFER_PEPPER_H - - |