summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/service/common_decoder.cc
diff options
context:
space:
mode:
authorpiman@google.com <piman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-23 00:57:35 +0000
committerpiman@google.com <piman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-23 00:57:35 +0000
commit6b7a63f77940d7746e85b1165073cb1c1cc13deb (patch)
treed2a63c42e07a53641bc19a3191f612a8665619c8 /gpu/command_buffer/service/common_decoder.cc
parent1a6273b7545c8413208cd1831862870827645f1e (diff)
downloadchromium_src-6b7a63f77940d7746e85b1165073cb1c1cc13deb.zip
chromium_src-6b7a63f77940d7746e85b1165073cb1c1cc13deb.tar.gz
chromium_src-6b7a63f77940d7746e85b1165073cb1c1cc13deb.tar.bz2
Add a yield command to the command buffer.
This allows more graceful scheduling so that waiting on the previous frame's swapbuffers doesn't end up being a Finish. BUG=none TEST=check in about:gpu and verify that SwapBuffers in the renderer process actually only waits for the previous SwapBuffers in the gpu process. Review URL: http://codereview.chromium.org/6899037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82759 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/service/common_decoder.cc')
-rw-r--r--gpu/command_buffer/service/common_decoder.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/gpu/command_buffer/service/common_decoder.cc b/gpu/command_buffer/service/common_decoder.cc
index a116d04..35eaf66 100644
--- a/gpu/command_buffer/service/common_decoder.cc
+++ b/gpu/command_buffer/service/common_decoder.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -330,4 +330,10 @@ error::Error CommonDecoder::HandleGetBucketData(
return error::kNoError;
}
+error::Error CommonDecoder::HandleYieldScheduler(
+ uint32 immediate_data_size,
+ const cmd::YieldScheduler& args) {
+ return error::kYield;
+}
+
} // namespace gpu