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

Side by Side Diff: cc/trees/occlusion_tracker.h

Issue 2147283002: cc : Fix occlusion tracking bug for contributing surface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mask test Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | cc/trees/occlusion_tracker.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_TREES_OCCLUSION_TRACKER_H_ 5 #ifndef CC_TREES_OCCLUSION_TRACKER_H_
6 #define CC_TREES_OCCLUSION_TRACKER_H_ 6 #define CC_TREES_OCCLUSION_TRACKER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 22 matching lines...) Expand all
33 explicit OcclusionTracker(const gfx::Rect& screen_space_clip_rect); 33 explicit OcclusionTracker(const gfx::Rect& screen_space_clip_rect);
34 ~OcclusionTracker(); 34 ~OcclusionTracker();
35 35
36 // Return an occlusion that retains the current state of the tracker 36 // Return an occlusion that retains the current state of the tracker
37 // and can be used outside of a layer walk to check occlusion. 37 // and can be used outside of a layer walk to check occlusion.
38 Occlusion GetCurrentOcclusionForLayer( 38 Occlusion GetCurrentOcclusionForLayer(
39 const gfx::Transform& draw_transform) const; 39 const gfx::Transform& draw_transform) const;
40 Occlusion GetCurrentOcclusionForContributingSurface( 40 Occlusion GetCurrentOcclusionForContributingSurface(
41 const gfx::Transform& draw_transform) const; 41 const gfx::Transform& draw_transform) const;
42 42
43 const RenderSurfaceImpl* OcclusionSurfaceForContributingSurface() const;
43 // Called at the beginning of each step in the LayerIterator's front-to-back 44 // Called at the beginning of each step in the LayerIterator's front-to-back
44 // traversal. 45 // traversal.
45 void EnterLayer(const LayerIteratorPosition& layer_iterator); 46 void EnterLayer(const LayerIteratorPosition& layer_iterator);
46 // Called at the end of each step in the LayerIterator's front-to-back 47 // Called at the end of each step in the LayerIterator's front-to-back
47 // traversal. 48 // traversal.
48 void LeaveLayer(const LayerIteratorPosition& layer_iterator); 49 void LeaveLayer(const LayerIteratorPosition& layer_iterator);
49 50
50 // Gives the region of the screen that is not occluded by something opaque. 51 // Gives the region of the screen that is not occluded by something opaque.
51 Region ComputeVisibleRegionInScreen(const LayerTreeImpl* layer_tree) const; 52 Region ComputeVisibleRegionInScreen(const LayerTreeImpl* layer_tree) const;
52 53
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 102
102 gfx::Rect screen_space_clip_rect_; 103 gfx::Rect screen_space_clip_rect_;
103 gfx::Size minimum_tracking_size_; 104 gfx::Size minimum_tracking_size_;
104 105
105 DISALLOW_COPY_AND_ASSIGN(OcclusionTracker); 106 DISALLOW_COPY_AND_ASSIGN(OcclusionTracker);
106 }; 107 };
107 108
108 } // namespace cc 109 } // namespace cc
109 110
110 #endif // CC_TREES_OCCLUSION_TRACKER_H_ 111 #endif // CC_TREES_OCCLUSION_TRACKER_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | cc/trees/occlusion_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698