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

Unified Diff: cc/trees/layer_tree_host.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.h ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host.cc
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
index d9cab33cef74c5932c7ae035a5f2fed42b163382..8dd5652751b9b7c4708c23fa6c1187ac235d35d5 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -107,7 +107,6 @@ LayerTreeHost::LayerTreeHost(LayerTreeHostClient* client,
page_scale_factor_(1.f),
min_page_scale_factor_(1.f),
max_page_scale_factor_(1.f),
- trigger_idle_updates_(true),
has_gpu_rasterization_trigger_(false),
content_is_suitable_for_gpu_rasterization_(true),
background_color_(SK_ColorWHITE),
@@ -456,15 +455,6 @@ void LayerTreeHost::DidLoseOutputSurface() {
SetNeedsCommit();
}
-bool LayerTreeHost::CompositeAndReadback(
- void* pixels,
- const gfx::Rect& rect_in_device_viewport) {
- trigger_idle_updates_ = false;
- bool ret = proxy_->CompositeAndReadback(pixels, rect_in_device_viewport);
- trigger_idle_updates_ = true;
- return ret;
-}
-
void LayerTreeHost::FinishAllRendering() {
proxy_->FinishAllRendering();
}
@@ -840,7 +830,7 @@ bool LayerTreeHost::UpdateLayers(Layer* root_layer,
bool need_more_updates = false;
PaintLayerContents(
update_list, queue, &did_paint_content, &need_more_updates);
- if (trigger_idle_updates_ && need_more_updates) {
+ if (need_more_updates) {
TRACE_EVENT0("cc", "LayerTreeHost::UpdateLayers::posting prepaint task");
prepaint_callback_.Reset(base::Bind(&LayerTreeHost::TriggerPrepaint,
base::Unretained(this)));
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698