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

Unified Diff: cc/trees/layer_tree_host_impl.h

Issue 23796002: cc: Implement deadine scheduling disabled by default (Closed) Base URL: http://git.chromium.org/chromium/src.git@schedReadback4
Patch Set: Fix context lost race conditions Created 7 years, 3 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
Index: cc/trees/layer_tree_host_impl.h
diff --git a/cc/trees/layer_tree_host_impl.h b/cc/trees/layer_tree_host_impl.h
index 4efbffa144c3f3c7f4cb2c2a2fff8891f7c2eef1..7a0492aeb0e27010b4d63e8062afab20033f8693 100644
--- a/cc/trees/layer_tree_host_impl.h
+++ b/cc/trees/layer_tree_host_impl.h
@@ -183,6 +183,9 @@ class CC_EXPORT LayerTreeHostImpl
// immediately if any notifications had been blocked while blocking.
virtual void BlockNotifyReadyToActivateForTesting(bool block);
+ // This allows us to inject DidInitializeVisibleTile events for testing.
+ void DidInitializeVisibleTileForTesting();
+
bool device_viewport_valid_for_tile_management() const {
return device_viewport_valid_for_tile_management_;
}
@@ -405,8 +408,6 @@ class CC_EXPORT LayerTreeHostImpl
ResourceProvider::ResourceId ResourceIdForUIResource(UIResourceId uid) const;
- void DidInitializeVisibleTileForTesting() { DidInitializeVisibleTile(); }
-
protected:
LayerTreeHostImpl(
const LayerTreeSettings& settings,
@@ -478,7 +479,7 @@ class CC_EXPORT LayerTreeHostImpl
bool zero_budget);
void EnforceManagedMemoryPolicy(const ManagedMemoryPolicy& policy);
- void DidInitializeVisibleTile();
+ void DidInitializeVisibleTile(bool notify_client);
typedef base::hash_map<UIResourceId, ResourceProvider::ResourceId>
UIResourceMap;

Powered by Google App Engine
This is Rietveld 408576698