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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 279013002: Remove CompositeAndReadback from LayerTreeHost(Impl) and the Proxys. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm-cnr-lth-proxy-renderer: rebase-on-drawresult Created 6 years, 7 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 3683884e23fd37fde140a49928de3a197660b4ed..536aed83534a52b017638e37ec24abe0e4982575 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -1082,8 +1082,7 @@ void LayerTreeHostImpl::RemoveRenderPasses(RenderPassCuller culler,
}
}
-DrawResult LayerTreeHostImpl::PrepareToDraw(FrameData* frame,
- const gfx::Rect& damage_rect) {
+DrawResult LayerTreeHostImpl::PrepareToDraw(FrameData* frame) {
TRACE_EVENT1("cc",
"LayerTreeHostImpl::PrepareToDraw",
"SourceFrameNumber",
@@ -1104,9 +1103,8 @@ DrawResult LayerTreeHostImpl::PrepareToDraw(FrameData* frame,
frame->contains_incomplete_tile = false;
frame->has_no_damage = false;
- gfx::Rect device_viewport_damage_rect(damage_rect);
if (active_tree_->root_layer()) {
- device_viewport_damage_rect.Union(viewport_damage_rect_);
+ gfx::Rect device_viewport_damage_rect = viewport_damage_rect_;
viewport_damage_rect_ = gfx::Rect();
active_tree_->root_layer()->render_surface()->damage_tracker()->
@@ -1602,12 +1600,6 @@ void LayerTreeHostImpl::DidLoseOutputSurface() {
#endif
}
-void LayerTreeHostImpl::Readback(void* pixels,
- const gfx::Rect& rect_in_device_viewport) {
- DCHECK(renderer_);
- renderer_->GetFramebufferPixels(pixels, rect_in_device_viewport);
-}
-
bool LayerTreeHostImpl::HaveRootScrollLayer() const {
return !!InnerViewportScrollLayer();
}
« 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