diff options
author | vmpstr <vmpstr@chromium.org> | 2015-10-20 17:19:14 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-21 00:20:41 +0000 |
commit | 90c16164be8c91a954a2e69bfa5a13ec3560a17f (patch) | |
tree | 5626b4b0f01424840c7d658c2c067689c295a356 /cc/playback/discardable_image_map.h | |
parent | 83e47b933a49ee7ba011a862eb706a0d25ec1624 (diff) | |
download | chromium_src-90c16164be8c91a954a2e69bfa5a13ec3560a17f.zip chromium_src-90c16164be8c91a954a2e69bfa5a13ec3560a17f.tar.gz chromium_src-90c16164be8c91a954a2e69bfa5a13ec3560a17f.tar.bz2 |
cc: Save only the scale for discardable images.
This patch replaces storing a matrix with storing a scale in DrawImage.
This means when copying this, we're copying a lot fewer floats.
This patch also adds raster scale to functions that get the
images at raster tile. The raster scale ensures that the
returned image has correctly adjusted scale.
R=enne
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/1419743002
Cr-Commit-Position: refs/heads/master@{#355198}
Diffstat (limited to 'cc/playback/discardable_image_map.h')
-rw-r--r-- | cc/playback/discardable_image_map.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cc/playback/discardable_image_map.h b/cc/playback/discardable_image_map.h index 53028b2..db6b17f 100644 --- a/cc/playback/discardable_image_map.h +++ b/cc/playback/discardable_image_map.h @@ -43,6 +43,7 @@ class CC_EXPORT DiscardableImageMap { bool empty() const { return all_images_.empty(); } void GetDiscardableImagesInRect(const gfx::Rect& rect, + float raster_scale, std::vector<DrawImage>* images) const; private: |