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

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

Issue 2143263002: cc: Remove OutputSurfaceClient::DidSwapBuffers(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removedidswap: fix-webview-swap Created 4 years, 5 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
« no previous file with comments | « cc/trees/layer_tree_host_impl.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/layer_tree_host_impl.h" 5 #include "cc/trees/layer_tree_host_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1458 matching lines...) Expand 10 before | Expand all | Expand 10 after
1469 } 1469 }
1470 } 1470 }
1471 1471
1472 void LayerTreeHostImpl::SetNeedsRedrawRect(const gfx::Rect& damage_rect) { 1472 void LayerTreeHostImpl::SetNeedsRedrawRect(const gfx::Rect& damage_rect) {
1473 if (damage_rect.IsEmpty()) 1473 if (damage_rect.IsEmpty())
1474 return; 1474 return;
1475 NotifySwapPromiseMonitorsOfSetNeedsRedraw(); 1475 NotifySwapPromiseMonitorsOfSetNeedsRedraw();
1476 client_->SetNeedsRedrawRectOnImplThread(damage_rect); 1476 client_->SetNeedsRedrawRectOnImplThread(damage_rect);
1477 } 1477 }
1478 1478
1479 void LayerTreeHostImpl::DidSwapBuffers() {
1480 client_->DidSwapBuffersOnImplThread();
1481 }
1482
1483 void LayerTreeHostImpl::DidSwapBuffersComplete() { 1479 void LayerTreeHostImpl::DidSwapBuffersComplete() {
1484 client_->DidSwapBuffersCompleteOnImplThread(); 1480 client_->DidSwapBuffersCompleteOnImplThread();
1485 } 1481 }
1486 1482
1487 void LayerTreeHostImpl::DidReceiveTextureInUseResponses( 1483 void LayerTreeHostImpl::DidReceiveTextureInUseResponses(
1488 const gpu::TextureInUseResponses& responses) { 1484 const gpu::TextureInUseResponses& responses) {
1489 NOTREACHED(); 1485 NOTREACHED();
1490 } 1486 }
1491 1487
1492 void LayerTreeHostImpl::ReclaimResources(const CompositorFrameAck* ack) { 1488 void LayerTreeHostImpl::ReclaimResources(const CompositorFrameAck* ack) {
(...skipping 2533 matching lines...) Expand 10 before | Expand all | Expand 10 after
4026 return task_runner_provider_->HasImplThread(); 4022 return task_runner_provider_->HasImplThread();
4027 } 4023 }
4028 4024
4029 bool LayerTreeHostImpl::CommitToActiveTree() const { 4025 bool LayerTreeHostImpl::CommitToActiveTree() const {
4030 // In single threaded mode we skip the pending tree and commit directly to the 4026 // In single threaded mode we skip the pending tree and commit directly to the
4031 // active tree. 4027 // active tree.
4032 return !task_runner_provider_->HasImplThread(); 4028 return !task_runner_provider_->HasImplThread();
4033 } 4029 }
4034 4030
4035 } // namespace cc 4031 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698