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

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

Issue 24925002: Move Insert/SignalSyncPoint() to GpuControl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase past r226145 Created 7 years, 2 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 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;
42 41
43 // Sets a callback that is called whenever the put offset is changed. When 42 // Sets a callback that is called whenever the put offset is changed. When
44 // called with sync==true, the callback must not return until some progress 43 // called with sync==true, the callback must not return until some progress
45 // has been made (unless the command buffer is empty), i.e. the get offset 44 // has been made (unless the command buffer is empty), i.e. the get offset
46 // must have changed. It need not process the entire command buffer though. 45 // must have changed. It need not process the entire command buffer though.
47 // This allows concurrency between the writer and the reader while giving the 46 // This allows concurrency between the writer and the reader while giving the
48 // writer a means of waiting for the reader to make some progress before 47 // writer a means of waiting for the reader to make some progress before
49 // attempting to write more to the command buffer. Takes ownership of 48 // attempting to write more to the command buffer. Takes ownership of
50 // callback. 49 // callback.
51 virtual void SetPutOffsetChangeCallback(const base::Closure& callback); 50 virtual void SetPutOffsetChangeCallback(const base::Closure& callback);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 uint32 generation_; 82 uint32 generation_;
84 error::Error error_; 83 error::Error error_;
85 error::ContextLostReason context_lost_reason_; 84 error::ContextLostReason context_lost_reason_;
86 85
87 DISALLOW_COPY_AND_ASSIGN(CommandBufferService); 86 DISALLOW_COPY_AND_ASSIGN(CommandBufferService);
88 }; 87 };
89 88
90 } // namespace gpu 89 } // namespace gpu
91 90
92 #endif // GPU_COMMAND_BUFFER_SERVICE_COMMAND_BUFFER_SERVICE_H_ 91 #endif // GPU_COMMAND_BUFFER_SERVICE_COMMAND_BUFFER_SERVICE_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/gpu_control.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