summaryrefslogtreecommitdiffstats
path: root/chrome/plugin
diff options
context:
space:
mode:
authorpiman@google.com <piman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-14 23:43:15 +0000
committerpiman@google.com <piman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-14 23:43:15 +0000
commit7d5b8d1da5cda4a2fbd071430f7030596c3c7365 (patch)
tree99b82372e1436bcaca5dcc5ba625ad28da0460da /chrome/plugin
parent08a3cacedb78fd367b166dad5fdf7dfb01d36bfb (diff)
downloadchromium_src-7d5b8d1da5cda4a2fbd071430f7030596c3c7365.zip
chromium_src-7d5b8d1da5cda4a2fbd071430f7030596c3c7365.tar.gz
chromium_src-7d5b8d1da5cda4a2fbd071430f7030596c3c7365.tar.bz2
Make CommandBuffer::Flush asynchronous, and add CommandBuffer::FlushSync with former semantics.
Also force a flush when the buffer is getting full. BUG=none TEST=gpu_unittests, some webgl content, some 3d css content, pepper flash Review URL: http://codereview.chromium.org/6316002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71514 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/plugin')
-rw-r--r--chrome/plugin/command_buffer_stub.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/plugin/command_buffer_stub.cc b/chrome/plugin/command_buffer_stub.cc
index de9bbdb..2ef657a 100644
--- a/chrome/plugin/command_buffer_stub.cc
+++ b/chrome/plugin/command_buffer_stub.cc
@@ -140,11 +140,11 @@ void CommandBufferStub::OnAsyncGetState() {
void CommandBufferStub::OnFlush(int32 put_offset,
gpu::CommandBuffer::State* state) {
- *state = command_buffer_->Flush(put_offset);
+ *state = command_buffer_->FlushSync(put_offset);
}
void CommandBufferStub::OnAsyncFlush(int32 put_offset) {
- gpu::CommandBuffer::State state = command_buffer_->Flush(put_offset);
+ gpu::CommandBuffer::State state = command_buffer_->FlushSync(put_offset);
Send(new GpuCommandBufferMsg_UpdateState(route_id_, state));
}