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

Unified Diff: cc/trees/occlusion_tracker.h

Issue 547723002: Reland of: cc: Add occlusion checker as a fixed view of occlusion tracker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: with test? Created 6 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/occlusion_tracker.h
diff --git a/cc/trees/occlusion_tracker.h b/cc/trees/occlusion_tracker.h
index 8d07f434cf3b79ba409b0b27f73d4e927ef23c44..f35d439a975d70267c3ff633c758c0237a24d186 100644
--- a/cc/trees/occlusion_tracker.h
+++ b/cc/trees/occlusion_tracker.h
@@ -11,6 +11,7 @@
#include "cc/base/cc_export.h"
#include "cc/base/simple_enclosed_region.h"
#include "cc/layers/layer_iterator.h"
+#include "cc/trees/occlusion_checker.h"
#include "ui/gfx/rect.h"
namespace cc {
@@ -35,6 +36,11 @@ class CC_EXPORT OcclusionTracker {
explicit OcclusionTracker(const gfx::Rect& screen_space_clip_rect);
~OcclusionTracker();
+ // Return an occlusion checker that retains the current state of the tracker
+ // and can be used outside of a layer walk to check occlusion.
+ OcclusionChecker<LayerType> GenerateOcclusionChecker(
danakj 2014/09/09 15:14:39 nit: GetCurrentOcclusionForLayer()? Or GetOcclusio
vmpstr 2014/09/09 21:56:57 Changed to GetCurrentOcclusionForLayer
+ const gfx::Transform& draw_transform) const;
+
// Called at the beginning of each step in the LayerIterator's front-to-back
// traversal.
void EnterLayer(const LayerIteratorPosition<LayerType>& layer_iterator);

Powered by Google App Engine
This is Rietveld 408576698