summaryrefslogtreecommitdiffstats
path: root/cc/resources/tile.h
diff options
context:
space:
mode:
authorvmpstr@chromium.org <vmpstr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-30 00:53:36 +0000
committervmpstr@chromium.org <vmpstr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-30 00:53:36 +0000
commit09059df297af201421abdd3be516cf3ca21dab87 (patch)
treeaf0e91da77525d4b9432f4ec73faedb14ac77acb /cc/resources/tile.h
parent5f01ce2a2ae37642c94d7be68f9b32423f69eddd (diff)
downloadchromium_src-09059df297af201421abdd3be516cf3ca21dab87.zip
chromium_src-09059df297af201421abdd3be516cf3ca21dab87.tar.gz
chromium_src-09059df297af201421abdd3be516cf3ca21dab87.tar.bz2
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
Diffstat (limited to 'cc/resources/tile.h')
-rw-r--r--cc/resources/tile.h4
1 files changed, 3 insertions, 1 deletions
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<Tile> {
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.