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

Side by Side Diff: gpu/command_buffer/service/command_buffer_service.h

Issue 253943002: Remove CommandBuffer::GetState (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: I forgot Poland^Wmojo Created 6 years, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_COMMAND_BUFFER_SERVICE_COMMAND_BUFFER_SERVICE_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_COMMAND_BUFFER_SERVICE_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_COMMAND_BUFFER_SERVICE_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_COMMAND_BUFFER_SERVICE_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/shared_memory.h" 9 #include "base/memory/shared_memory.h"
10 #include "gpu/command_buffer/common/command_buffer.h" 10 #include "gpu/command_buffer/common/command_buffer.h"
(...skipping 28 matching lines...) Expand all
39 // API to manage the put and get pointers. 39 // API to manage the put and get pointers.
40 class GPU_EXPORT CommandBufferService : public CommandBufferServiceBase { 40 class GPU_EXPORT CommandBufferService : public CommandBufferServiceBase {
41 public: 41 public:
42 typedef base::Callback<bool(int32)> GetBufferChangedCallback; 42 typedef base::Callback<bool(int32)> GetBufferChangedCallback;
43 explicit CommandBufferService( 43 explicit CommandBufferService(
44 TransferBufferManagerInterface* transfer_buffer_manager); 44 TransferBufferManagerInterface* transfer_buffer_manager);
45 virtual ~CommandBufferService(); 45 virtual ~CommandBufferService();
46 46
47 // CommandBuffer implementation: 47 // CommandBuffer implementation:
48 virtual bool Initialize() OVERRIDE; 48 virtual bool Initialize() OVERRIDE;
49 virtual State GetState() OVERRIDE;
50 virtual State GetLastState() OVERRIDE; 49 virtual State GetLastState() OVERRIDE;
51 virtual int32 GetLastToken() OVERRIDE; 50 virtual int32 GetLastToken() OVERRIDE;
52 virtual void Flush(int32 put_offset) OVERRIDE; 51 virtual void Flush(int32 put_offset) OVERRIDE;
53 virtual void WaitForTokenInRange(int32 start, int32 end) OVERRIDE; 52 virtual void WaitForTokenInRange(int32 start, int32 end) OVERRIDE;
54 virtual void WaitForGetOffsetInRange(int32 start, int32 end) OVERRIDE; 53 virtual void WaitForGetOffsetInRange(int32 start, int32 end) OVERRIDE;
55 virtual void SetGetBuffer(int32 transfer_buffer_id) OVERRIDE; 54 virtual void SetGetBuffer(int32 transfer_buffer_id) OVERRIDE;
56 virtual scoped_refptr<Buffer> CreateTransferBuffer(size_t size, 55 virtual scoped_refptr<Buffer> CreateTransferBuffer(size_t size,
57 int32* id) OVERRIDE; 56 int32* id) OVERRIDE;
58 virtual void DestroyTransferBuffer(int32 id) OVERRIDE; 57 virtual void DestroyTransferBuffer(int32 id) OVERRIDE;
59 58
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 uint32 generation_; 103 uint32 generation_;
105 error::Error error_; 104 error::Error error_;
106 error::ContextLostReason context_lost_reason_; 105 error::ContextLostReason context_lost_reason_;
107 106
108 DISALLOW_COPY_AND_ASSIGN(CommandBufferService); 107 DISALLOW_COPY_AND_ASSIGN(CommandBufferService);
109 }; 108 };
110 109
111 } // namespace gpu 110 } // namespace gpu
112 111
113 #endif // GPU_COMMAND_BUFFER_SERVICE_COMMAND_BUFFER_SERVICE_H_ 112 #endif // GPU_COMMAND_BUFFER_SERVICE_COMMAND_BUFFER_SERVICE_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/command_buffer_mock.h ('k') | gpu/command_buffer/service/command_buffer_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698