From 49304bde71a1acd64cb21cfde6314abb9c1710e1 Mon Sep 17 00:00:00 2001 From: "enne@chromium.org" Date: Mon, 8 Jul 2013 21:31:22 +0000 Subject: cc: Make Layer::Update return a bool As part of an optimization to prevent needless commits, add a return value from Update to say whether or not any resources were updated as a part of the call. Other layer property updates (bounds changes, etc) that happen during Update are covered through the normal SetNeedsCommit mechanism. This will allow a future patch to make SetNeedsDisplay/SetScrollOffsetFromImplThread only cause an update but not necessarily cause a commit. R=danakj@chromium.org BUG=256381 Review URL: https://chromiumcodereview.appspot.com/18454003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210424 0039d316-1c4b-4281-b951-d872f2087c98 --- cc/test/fake_picture_layer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cc/test/fake_picture_layer.h') diff --git a/cc/test/fake_picture_layer.h b/cc/test/fake_picture_layer.h index 442ed64..7608644 100644 --- a/cc/test/fake_picture_layer.h +++ b/cc/test/fake_picture_layer.h @@ -23,7 +23,7 @@ class FakePictureLayer : public PictureLayer { size_t update_count() const { return update_count_; } void reset_update_count() { update_count_ = 0; } - virtual void Update( + virtual bool Update( ResourceUpdateQueue* queue, const OcclusionTracker* occlusion) OVERRIDE; -- cgit v1.1