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

Side by Side Diff: cc/trees/thread_proxy.cc

Issue 14417014: cc: Add tile-free software compositing mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 #include "cc/trees/thread_proxy.h" 5 #include "cc/trees/thread_proxy.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "cc/base/thread.h" 10 #include "cc/base/thread.h"
(...skipping 894 matching lines...) Expand 10 before | Expand all | Expand 10 after
905 905
906 // If it is a forced draw, make sure we do a draw and swap. 906 // If it is a forced draw, make sure we do a draw and swap.
907 gfx::Rect readback_rect; 907 gfx::Rect readback_rect;
908 if (readback_request_on_impl_thread_) 908 if (readback_request_on_impl_thread_)
909 readback_rect = readback_request_on_impl_thread_->rect; 909 readback_rect = readback_request_on_impl_thread_->rect;
910 910
911 LayerTreeHostImpl::FrameData frame; 911 LayerTreeHostImpl::FrameData frame;
912 bool draw_frame = false; 912 bool draw_frame = false;
913 bool start_ready_animations = true; 913 bool start_ready_animations = true;
914 914
915 if (layer_tree_host_impl_->settings().tile_free_software_compositing)
916 frame.cannot_append_tile_draw_quads = true;
917
915 if (layer_tree_host_impl_->CanDraw()) { 918 if (layer_tree_host_impl_->CanDraw()) {
916 // Do not start animations if we skip drawing the frame to avoid 919 // Do not start animations if we skip drawing the frame to avoid
917 // checkerboarding. 920 // checkerboarding.
918 if (layer_tree_host_impl_->PrepareToDraw(&frame, readback_rect) || 921 if (layer_tree_host_impl_->PrepareToDraw(&frame, readback_rect) ||
919 forced_draw) 922 forced_draw)
920 draw_frame = true; 923 draw_frame = true;
921 else 924 else
922 start_ready_animations = false; 925 start_ready_animations = false;
923 } 926 }
924 927
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
1352 1355
1353 void ThreadProxy::DidReceiveLastInputEventForVSync( 1356 void ThreadProxy::DidReceiveLastInputEventForVSync(
1354 base::TimeTicks frame_time) { 1357 base::TimeTicks frame_time) {
1355 if (render_vsync_notification_enabled_) { 1358 if (render_vsync_notification_enabled_) {
1356 TRACE_EVENT0("cc", "ThreadProxy::DidReceiveLastInputEventForVSync"); 1359 TRACE_EVENT0("cc", "ThreadProxy::DidReceiveLastInputEventForVSync");
1357 DidVSync(frame_time); 1360 DidVSync(frame_time);
1358 } 1361 }
1359 } 1362 }
1360 1363
1361 } // namespace cc 1364 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698