From 09059df297af201421abdd3be516cf3ca21dab87 Mon Sep 17 00:00:00 2001 From: "vmpstr@chromium.org" Date: Tue, 30 Apr 2013 00:53:36 +0000 Subject: cc: TileManager AssignGpuMemory cleanup This is work in progress. Some of the functionality to get the currently used memory is moved into DrawingInfo, which (hopefully) makes TileManager a bit more clear when dealing with tile memory BUG=225804 Review URL: https://chromiumcodereview.appspot.com/13771015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197193 0039d316-1c4b-4281-b951-d872f2087c98 --- cc/resources/tile.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cc/resources/tile.h') diff --git a/cc/resources/tile.h b/cc/resources/tile.h index fbb9002..f68fdf1 100644 --- a/cc/resources/tile.h +++ b/cc/resources/tile.h @@ -69,7 +69,9 @@ class CC_EXPORT Tile : public base::RefCounted { picture_pile_ = pile; } - bool IsAssignedGpuMemory() const { return managed_state_.can_use_gpu_memory; } + bool IsAssignedGpuMemory() const { + return drawing_info().memory_state_ != NOT_ALLOWED_TO_USE_MEMORY; + } private: // Methods called by by tile manager. -- cgit v1.1