diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-22 01:16:43 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-22 01:21:15 +0000 |
commit | d5467eb7835eccd7b1e1a65096c9b1f37c70fcb2 (patch) | |
tree | db295fcc90bc936cf52818bffd73d7560c80f0f3 /cc/layers/tiled_layer_impl.h | |
parent | 903cf847d2d66f33e1f2cdab5f45a1b07558fa7a (diff) | |
download | chromium_src-d5467eb7835eccd7b1e1a65096c9b1f37c70fcb2.zip chromium_src-d5467eb7835eccd7b1e1a65096c9b1f37c70fcb2.tar.gz chromium_src-d5467eb7835eccd7b1e1a65096c9b1f37c70fcb2.tar.bz2 |
cc: Replace Region with SimpleEnclosedRegion for occlusion tracking
Instead of using an arbitrary Region, which is costly (slow), use
a new SimpleEnclosedRegion. This class tracks only a single Rect
at a given time so it is very fast and small. It tries to get
something like the largest rect enclosed in the actual Region
(were we to track such a Region) in an online fashion, ie it
doesn't remember anything except its current largest possible
rect.
BUG=405663
Review URL: https://codereview.chromium.org/202523002
Cr-Commit-Position: refs/heads/master@{#291292}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@291292 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/layers/tiled_layer_impl.h')
-rw-r--r-- | cc/layers/tiled_layer_impl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/layers/tiled_layer_impl.h b/cc/layers/tiled_layer_impl.h index e3d38a0..b45b733 100644 --- a/cc/layers/tiled_layer_impl.h +++ b/cc/layers/tiled_layer_impl.h @@ -43,7 +43,7 @@ class CC_EXPORT TiledLayerImpl : public LayerImpl { bool contents_swizzled); void PushInvalidTile(int i, int j); - virtual Region VisibleContentOpaqueRegion() const OVERRIDE; + virtual SimpleEnclosedRegion VisibleContentOpaqueRegion() const OVERRIDE; virtual void ReleaseResources() OVERRIDE; const LayerTilingData* TilingForTesting() const { return tiler_.get(); } |