From ac7c7f5ddf7ccddac616fd7700b020bd30446069 Mon Sep 17 00:00:00 2001 From: "danakj@chromium.org" Date: Thu, 8 Nov 2012 06:26:50 +0000 Subject: cc: Create a Region class that wraps SkRegion, to replace use of WebCore::Region. We create a class in cc/ called Region which provides a gfx:: type-friendly API to SkRegion, and allows for easily swapping out region implementations in the future if required. During the process, I removed tests dependency on a "size()" method on Region, that used to give the number of rects in the Region's internal representation. Instead, we always create a Region in the tests from our expected rects, and compare the Regions directly. We use ToString() comparisons to get useful failure outputs, similar to the unit tests of other geometry types in ui/gfx. This uncovered a WTF::Vector holdout in the OcclusionTracker class, which is converted to a std::vector. Covered by existing tests; no change in behaviour. R=enne BUG=147395 Review URL: https://chromiumcodereview.appspot.com/11366094 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166617 0039d316-1c4b-4281-b951-d872f2087c98 --- cc/layer_sorter.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'cc/layer_sorter.cc') diff --git a/cc/layer_sorter.cc b/cc/layer_sorter.cc index 2e37425..8cf9dcd 100644 --- a/cc/layer_sorter.cc +++ b/cc/layer_sorter.cc @@ -6,6 +6,7 @@ #include "cc/layer_sorter.h" +#include #include #include #include -- cgit v1.1