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

Unified Diff: cc/resources/tile.h

Issue 671653005: SetNeedsRedraw directly when updating a visible tile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pinchblurmerge-test: fixflakiness Created 6 years, 2 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 | « no previous file | cc/resources/tile_manager.h » ('j') | cc/resources/tile_manager.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/tile.h
diff --git a/cc/resources/tile.h b/cc/resources/tile.h
index c6413677eb9cff8a8d506c80722705060ddd904e..230952aa5837d25034ee84f794e342cf50c052a4 100644
--- a/cc/resources/tile.h
+++ b/cc/resources/tile.h
@@ -66,6 +66,10 @@ class CC_EXPORT Tile : public RefCountedManaged<Tile> {
void set_shared(bool is_shared) { is_shared_ = is_shared; }
bool is_shared() const { return is_shared_; }
+ bool is_active_and_visible_priority() const {
+ return priority(ACTIVE_TREE).distance_to_visible == 0.f;
+ }
+
bool is_occluded_for_tree_priority(TreePriority tree_priority) const {
switch (tree_priority) {
case SMOOTHNESS_TAKES_PRIORITY:
« no previous file with comments | « no previous file | cc/resources/tile_manager.h » ('j') | cc/resources/tile_manager.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698