Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Side by Side Diff: gpu/pgl/command_buffer_pepper.h

Issue 555020: Redesigned CommandBuffer and NPDevice3D interfaces (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gpu/command_buffer/service/gpu_processor_unittest.cc ('k') | gpu/pgl/command_buffer_pepper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef GPU_PGL_COMMAND_BUFFER_PEPPER_H 5 #ifndef GPU_PGL_COMMAND_BUFFER_PEPPER_H
6 #define GPU_PGL_COMMAND_BUFFER_PEPPER_H 6 #define GPU_PGL_COMMAND_BUFFER_PEPPER_H
7 7
8 #include "gpu/command_buffer/common/command_buffer.h" 8 #include "gpu/command_buffer/common/command_buffer.h"
9 #include "third_party/npapi/bindings/npapi.h" 9 #include "third_party/npapi/bindings/npapi.h"
10 #include "third_party/npapi/bindings/npruntime.h" 10 #include "third_party/npapi/bindings/npruntime.h"
(...skipping 10 matching lines...) Expand all
21 class CommandBufferPepper : public gpu::CommandBuffer { 21 class CommandBufferPepper : public gpu::CommandBuffer {
22 public: 22 public:
23 CommandBufferPepper(NPP npp, 23 CommandBufferPepper(NPP npp,
24 NPDevice* device, 24 NPDevice* device,
25 NPDeviceContext3D* device_context); 25 NPDeviceContext3D* device_context);
26 virtual ~CommandBufferPepper(); 26 virtual ~CommandBufferPepper();
27 27
28 // CommandBuffer implementation. 28 // CommandBuffer implementation.
29 virtual bool Initialize(int32 size); 29 virtual bool Initialize(int32 size);
30 virtual gpu::Buffer GetRingBuffer(); 30 virtual gpu::Buffer GetRingBuffer();
31 virtual int32 GetSize(); 31 virtual State GetState();
32 virtual int32 SyncOffsets(int32 put_offset); 32 virtual State Flush(int32 put_offset);
33 virtual int32 GetGetOffset();
34 virtual void SetGetOffset(int32 get_offset); 33 virtual void SetGetOffset(int32 get_offset);
35 virtual int32 GetPutOffset();
36 virtual int32 CreateTransferBuffer(size_t size); 34 virtual int32 CreateTransferBuffer(size_t size);
37 virtual void DestroyTransferBuffer(int32 id); 35 virtual void DestroyTransferBuffer(int32 id);
38 virtual gpu::Buffer GetTransferBuffer(int32 handle); 36 virtual gpu::Buffer GetTransferBuffer(int32 handle);
39 virtual int32 GetToken();
40 virtual void SetToken(int32 token); 37 virtual void SetToken(int32 token);
41 virtual int32 ResetParseError(); 38 virtual void SetParseError(gpu::parse_error::ParseError parse_error);
42 virtual void SetParseError(int32 parse_error);
43 virtual bool GetErrorStatus();
44 virtual void RaiseErrorStatus();
45 39
46 private: 40 private:
41 CommandBuffer::State ConvertState();
42
47 NPP npp_; 43 NPP npp_;
48 NPDevice* device_; 44 NPDevice* device_;
49 NPDeviceContext3D* context_; 45 NPDeviceContext3D* context_;
50 }; 46 };
51 47
52 #endif // GPU_PGL_COMMAND_BUFFER_PEPPER_H 48 #endif // GPU_PGL_COMMAND_BUFFER_PEPPER_H
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gpu_processor_unittest.cc ('k') | gpu/pgl/command_buffer_pepper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698