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

Unified Diff: ui/gfx/transform.h

Issue 11358181: Use nearest neighbor filtering for non-translated quads (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Change CHECK() into DCHECK(). Created 8 years 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/transferable_resource.cc ('k') | ui/gfx/transform.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/transform.h
diff --git a/ui/gfx/transform.h b/ui/gfx/transform.h
index cccbe722410bb8b5fd612e2c15bb2a9e9f09e6d6..6d1ce1e1ad54e1f0ba78dcc60288f98d390b4689 100644
--- a/ui/gfx/transform.h
+++ b/ui/gfx/transform.h
@@ -73,6 +73,10 @@ class UI_EXPORT Transform {
// Returns true if the matrix is either identity or pure translation.
bool IsIdentityOrTranslation() const;
+ // Returns true if the matrix is either identity or pure, non-fractional
+ // translation.
+ bool IsIdentityOrIntegerTranslation() const;
+
// Returns true if the matrix is has only scaling and translation components.
bool IsScaleOrTranslation() const;
« no previous file with comments | « cc/transferable_resource.cc ('k') | ui/gfx/transform.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698