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

Side by Side Diff: chrome/renderer/command_buffer_proxy.h

Issue 6316002: Make CommandBuffer::Flush asynchronous, and add CommandBuffer::FlushSync with former semantics. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 11 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 | « chrome/plugin/command_buffer_stub.cc ('k') | chrome/renderer/command_buffer_proxy.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 CHROME_RENDERER_COMMAND_BUFFER_PROXY_H_ 5 #ifndef CHROME_RENDERER_COMMAND_BUFFER_PROXY_H_
6 #define CHROME_RENDERER_COMMAND_BUFFER_PROXY_H_ 6 #define CHROME_RENDERER_COMMAND_BUFFER_PROXY_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(ENABLE_GPU) 9 #if defined(ENABLE_GPU)
10 10
(...skipping 29 matching lines...) Expand all
40 // IPC::Channel::Listener implementation: 40 // IPC::Channel::Listener implementation:
41 virtual bool OnMessageReceived(const IPC::Message& message); 41 virtual bool OnMessageReceived(const IPC::Message& message);
42 virtual void OnChannelError(); 42 virtual void OnChannelError();
43 43
44 int route_id() const { return route_id_; } 44 int route_id() const { return route_id_; }
45 45
46 // CommandBuffer implementation: 46 // CommandBuffer implementation:
47 virtual bool Initialize(int32 size); 47 virtual bool Initialize(int32 size);
48 virtual gpu::Buffer GetRingBuffer(); 48 virtual gpu::Buffer GetRingBuffer();
49 virtual State GetState(); 49 virtual State GetState();
50 virtual State Flush(int32 put_offset); 50 virtual void Flush(int32 put_offset);
51 virtual State FlushSync(int32 put_offset);
51 virtual void SetGetOffset(int32 get_offset); 52 virtual void SetGetOffset(int32 get_offset);
52 virtual int32 CreateTransferBuffer(size_t size); 53 virtual int32 CreateTransferBuffer(size_t size);
53 virtual void DestroyTransferBuffer(int32 id); 54 virtual void DestroyTransferBuffer(int32 id);
54 virtual gpu::Buffer GetTransferBuffer(int32 handle); 55 virtual gpu::Buffer GetTransferBuffer(int32 handle);
55 virtual void SetToken(int32 token); 56 virtual void SetToken(int32 token);
56 virtual void SetParseError(gpu::error::Error error); 57 virtual void SetParseError(gpu::error::Error error);
57 virtual void OnSwapBuffers(); 58 virtual void OnSwapBuffers();
58 59
59 // Set a callback that will be invoked when the SwapBuffers call has been 60 // Set a callback that will be invoked when the SwapBuffers call has been
60 // issued. 61 // issued.
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 scoped_ptr<Task> notify_repaint_task_; 117 scoped_ptr<Task> notify_repaint_task_;
117 118
118 scoped_ptr<Callback0::Type> swap_buffers_callback_; 119 scoped_ptr<Callback0::Type> swap_buffers_callback_;
119 120
120 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxy); 121 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxy);
121 }; 122 };
122 123
123 #endif // ENABLE_GPU 124 #endif // ENABLE_GPU
124 125
125 #endif // CHROME_RENDERER_COMMAND_BUFFER_PROXY_H_ 126 #endif // CHROME_RENDERER_COMMAND_BUFFER_PROXY_H_
OLDNEW
« no previous file with comments | « chrome/plugin/command_buffer_stub.cc ('k') | chrome/renderer/command_buffer_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698