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

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

Issue 12581004: Move InsertSyncPoint to GLES2Interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years, 9 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/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "gpu/command_buffer/common/command_buffer.h" 10 #include "gpu/command_buffer/common/command_buffer.h"
(...skipping 20 matching lines...) Expand all
31 virtual void Flush(int32 put_offset) OVERRIDE; 31 virtual void Flush(int32 put_offset) OVERRIDE;
32 virtual State FlushSync(int32 put_offset, int32 last_known_get) OVERRIDE; 32 virtual State FlushSync(int32 put_offset, int32 last_known_get) OVERRIDE;
33 virtual void SetGetBuffer(int32 transfer_buffer_id) OVERRIDE; 33 virtual void SetGetBuffer(int32 transfer_buffer_id) OVERRIDE;
34 virtual void SetGetOffset(int32 get_offset) OVERRIDE; 34 virtual void SetGetOffset(int32 get_offset) OVERRIDE;
35 virtual Buffer CreateTransferBuffer(size_t size, int32* id) OVERRIDE; 35 virtual Buffer CreateTransferBuffer(size_t size, int32* id) OVERRIDE;
36 virtual void DestroyTransferBuffer(int32 id) OVERRIDE; 36 virtual void DestroyTransferBuffer(int32 id) OVERRIDE;
37 virtual Buffer GetTransferBuffer(int32 id) OVERRIDE; 37 virtual Buffer GetTransferBuffer(int32 id) OVERRIDE;
38 virtual void SetToken(int32 token) OVERRIDE; 38 virtual void SetToken(int32 token) OVERRIDE;
39 virtual void SetParseError(error::Error error) OVERRIDE; 39 virtual void SetParseError(error::Error error) OVERRIDE;
40 virtual void SetContextLostReason(error::ContextLostReason) OVERRIDE; 40 virtual void SetContextLostReason(error::ContextLostReason) OVERRIDE;
41 virtual uint32 InsertSyncPoint() OVERRIDE;
41 42
42 // Sets a callback that is called whenever the put offset is changed. When 43 // Sets a callback that is called whenever the put offset is changed. When
43 // called with sync==true, the callback must not return until some progress 44 // called with sync==true, the callback must not return until some progress
44 // has been made (unless the command buffer is empty), i.e. the get offset 45 // has been made (unless the command buffer is empty), i.e. the get offset
45 // must have changed. It need not process the entire command buffer though. 46 // must have changed. It need not process the entire command buffer though.
46 // This allows concurrency between the writer and the reader while giving the 47 // This allows concurrency between the writer and the reader while giving the
47 // writer a means of waiting for the reader to make some progress before 48 // writer a means of waiting for the reader to make some progress before
48 // attempting to write more to the command buffer. Takes ownership of 49 // attempting to write more to the command buffer. Takes ownership of
49 // callback. 50 // callback.
50 virtual void SetPutOffsetChangeCallback(const base::Closure& callback); 51 virtual void SetPutOffsetChangeCallback(const base::Closure& callback);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 uint32 generation_; 83 uint32 generation_;
83 error::Error error_; 84 error::Error error_;
84 error::ContextLostReason context_lost_reason_; 85 error::ContextLostReason context_lost_reason_;
85 86
86 DISALLOW_COPY_AND_ASSIGN(CommandBufferService); 87 DISALLOW_COPY_AND_ASSIGN(CommandBufferService);
87 }; 88 };
88 89
89 } // namespace gpu 90 } // namespace gpu
90 91
91 #endif // GPU_COMMAND_BUFFER_SERVICE_COMMAND_BUFFER_SERVICE_H_ 92 #endif // GPU_COMMAND_BUFFER_SERVICE_COMMAND_BUFFER_SERVICE_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_ids_autogen.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