diff options
author | backer@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-27 15:21:02 +0000 |
---|---|---|
committer | backer@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-27 15:21:02 +0000 |
commit | 452120874adff49845bb727e307a7face1cc5cc5 (patch) | |
tree | 005b178c47a01ec2ee9e30e51062c1a49a1e94b5 /gpu | |
parent | d6db626a5ce1c028c2a7340c50ac1860277a4d66 (diff) | |
download | chromium_src-452120874adff49845bb727e307a7face1cc5cc5.zip chromium_src-452120874adff49845bb727e307a7face1cc5cc5.tar.gz chromium_src-452120874adff49845bb727e307a7face1cc5cc5.tar.bz2 |
Aura: Keep scheduling in line with other platforms.
OSX and Vista+ only deschedule the image transport surface if there is a draw. This allows a greater amount of asynchronicity while waiting for a present (e.g. texture uploads). This small change does the same for Aura.
BUG=none
TEST=by hand
Review URL: https://codereview.chromium.org/10974008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159029 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu')
-rw-r--r-- | gpu/command_buffer/service/gles2_cmd_decoder.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc index 50e985c..6a714ee 100644 --- a/gpu/command_buffer/service/gles2_cmd_decoder.cc +++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc @@ -3239,6 +3239,9 @@ bool GLES2DecoderImpl::ResizeOffscreenFrameBuffer(const gfx::Size& size) { error::Error GLES2DecoderImpl::HandleResizeCHROMIUM( uint32 immediate_data_size, const gles2::ResizeCHROMIUM& c) { + if (ShouldDeferDraws()) + return error::kDeferCommandUntilLater; + GLuint width = static_cast<GLuint>(c.width); GLuint height = static_cast<GLuint>(c.height); TRACE_EVENT2("gpu", "glResizeChromium", "width", width, "height", height); |