From 122f41fe08cd0dac8d11c037456392f74ad216dd Mon Sep 17 00:00:00 2001 From: "vmpstr@chromium.org" Date: Fri, 30 Aug 2013 23:43:13 +0000 Subject: [PATCH] cc: Added inline to Tile::IsReadyToDraw This is a very small change that adds about 1% performance. R=reveman@chromium.org Review URL: https://chromiumcodereview.appspot.com/23837002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220698 0039d316-1c4b-4281-b951-d872f2087c98 --- cc/resources/tile.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cc/resources/tile.h b/cc/resources/tile.h index 51539c3104ee..0099da02d496 100644 --- a/cc/resources/tile.h +++ b/cc/resources/tile.h @@ -71,7 +71,7 @@ class CC_EXPORT Tile : public base::RefCounted { scoped_ptr AsValue() const; - bool IsReadyToDraw() const { + inline bool IsReadyToDraw() const { for (int mode = 0; mode < NUM_RASTER_MODES; ++mode) { if (managed_state_.tile_versions[mode].IsReadyToDraw()) return true; -- 2.11.4.GIT