Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4828)

Unified Diff: cc/tiles/mipmap_util.h

Issue 2042133002: Add display-resolution caching to GPU IDC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@drt
Patch Set: combine with crrev.com/2103353002 Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/tiles/gpu_image_decode_controller_unittest.cc ('k') | cc/tiles/mipmap_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/mipmap_util.h
diff --git a/cc/tiles/mipmap_util.h b/cc/tiles/mipmap_util.h
index 800246a7585912250597ded82689f7bebd830a06..521500ef1dee5a62a371da891641dddf98110e96 100644
--- a/cc/tiles/mipmap_util.h
+++ b/cc/tiles/mipmap_util.h
@@ -27,6 +27,11 @@ class CC_EXPORT MipMapUtil {
static SkSize GetScaleAdjustmentForLevel(const gfx::Size& src_size,
int mip_level);
+ // Determine the size of the given |mip_level|. Returns (-1, -1) if
+ // |src_size| is invalid (width/height <= 0) or if mip-level is invalid (==
+ // -1).
+ static gfx::Size GetSizeForLevel(const gfx::Size& src_size, int mip_level);
+
// Determines the scale factor for the smallest mip level that is larger than
// |target_size|. Returns (-1, -1) if |src_size| or |target_size| is invalid
// (width/height <= 0).
« no previous file with comments | « cc/tiles/gpu_image_decode_controller_unittest.cc ('k') | cc/tiles/mipmap_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698