summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornduca@chromium.org <nduca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-01 05:58:28 +0000
committernduca@chromium.org <nduca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-01 05:58:28 +0000
commit721b7aad7498a2c96cfa4dfb825f0be9994757a6 (patch)
tree947b127591466daef20541ece8d6f069cdd0e27e
parent2a5bbe816de78b76737641aaa973a1df91a052a3 (diff)
downloadchromium_src-721b7aad7498a2c96cfa4dfb825f0be9994757a6.zip
chromium_src-721b7aad7498a2c96cfa4dfb825f0be9994757a6.tar.gz
chromium_src-721b7aad7498a2c96cfa4dfb825f0be9994757a6.tar.bz2
[cc] Add stub for IsCheapInRect
R=enne CC=tomhudson,vmpstr BUG=173426 Review URL: https://chromiumcodereview.appspot.com/12096098 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180092 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--cc/picture.cc4
-rw-r--r--cc/picture.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/cc/picture.cc b/cc/picture.cc
index c850fd8..1407f55 100644
--- a/cc/picture.cc
+++ b/cc/picture.cc
@@ -108,6 +108,10 @@ void Picture::Raster(
canvas->restore();
}
+bool Picture::IsCheapInRect(const gfx::Rect& layer_rect) {
+ return false;
+}
+
void Picture::GatherPixelRefs(const gfx::Rect& layer_rect,
std::list<skia::LazyPixelRef*>& pixel_ref_list) {
DCHECK(picture_);
diff --git a/cc/picture.h b/cc/picture.h
index a6ed449..f64c6e8 100644
--- a/cc/picture.h
+++ b/cc/picture.h
@@ -42,6 +42,8 @@ class CC_EXPORT Picture
// Apply this contents scale and raster the content rect into the canvas.
void Raster(SkCanvas* canvas, gfx::Rect content_rect, float contents_scale);
+ bool IsCheapInRect(const gfx::Rect& layer_rect);
+
void GatherPixelRefs(
const gfx::Rect& layer_rect,
std::list<skia::LazyPixelRef*>& pixel_ref_list);