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

Unified Diff: cc/trees/thread_proxy.cc

Issue 671653005: SetNeedsRedraw directly when updating a visible tile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pinchblurmerge-test: . Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/trees/thread_proxy.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/thread_proxy.cc
diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc
index 0f7a2a3dee6baae9dd219c6d3c02f36c4025af2e..bd85f016e784034b5c4779e179da114819a261a7 100644
--- a/cc/trees/thread_proxy.cc
+++ b/cc/trees/thread_proxy.cc
@@ -479,23 +479,6 @@ void ThreadProxy::SetNeedsRedrawRectOnImplThread(const gfx::Rect& damage_rect) {
SetNeedsRedrawOnImplThread();
}
-void ThreadProxy::SetSwapUsedIncompleteTileOnImplThread(
- bool used_incomplete_tile) {
- DCHECK(IsImplThread());
- if (used_incomplete_tile) {
- TRACE_EVENT_INSTANT0("cc",
- "ThreadProxy::SetSwapUsedIncompleteTileOnImplThread",
- TRACE_EVENT_SCOPE_THREAD);
- }
- impl().scheduler->SetSwapUsedIncompleteTile(used_incomplete_tile);
-}
-
-void ThreadProxy::DidInitializeVisibleTileOnImplThread() {
- TRACE_EVENT0("cc", "ThreadProxy::DidInitializeVisibleTileOnImplThread");
- DCHECK(IsImplThread());
- impl().scheduler->SetNeedsRedraw();
-}
-
void ThreadProxy::MainThreadHasStoppedFlinging() {
DCHECK(IsMainThread());
Proxy::ImplThreadTaskRunner()->PostTask(
@@ -989,12 +972,6 @@ void ThreadProxy::ScheduledActionCommit() {
impl().timing_history.DidCommit();
}
-void ThreadProxy::ScheduledActionUpdateVisibleTiles() {
- TRACE_EVENT0("cc", "ThreadProxy::ScheduledActionUpdateVisibleTiles");
- DCHECK(IsImplThread());
- impl().layer_tree_host_impl->UpdateVisibleTiles();
-}
-
void ThreadProxy::ScheduledActionActivateSyncTree() {
TRACE_EVENT0("cc", "ThreadProxy::ScheduledActionActivateSyncTree");
DCHECK(IsImplThread());
@@ -1055,15 +1032,8 @@ DrawResult ThreadProxy::DrawSwapInternal(bool forced_draw) {
bool start_ready_animations = draw_frame;
impl().layer_tree_host_impl->UpdateAnimationState(start_ready_animations);
- if (draw_frame) {
- bool did_request_swap = impl().layer_tree_host_impl->SwapBuffers(frame);
-
- // We don't know if we have incomplete tiles if we didn't actually swap.
- if (did_request_swap) {
- DCHECK(!frame.has_no_damage);
- SetSwapUsedIncompleteTileOnImplThread(frame.contains_incomplete_tile);
- }
- }
+ if (draw_frame)
+ impl().layer_tree_host_impl->SwapBuffers(frame);
// Tell the main thread that the the newly-commited frame was drawn.
if (impl().next_frame_is_newly_committed_frame) {
« no previous file with comments | « cc/trees/thread_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698