diff options
author | Mathias Agopian <mathias@google.com> | 2011-07-19 15:24:46 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2011-07-19 15:24:46 -0700 |
commit | 97c602c5af5f3ffd69009bf496d86347b71a2b4c (patch) | |
tree | 2ce4b7b59ebb267abc76d9f8d3987beae24fda5c /services/surfaceflinger/Transform.cpp | |
parent | 933389f75814bb62e8153528f9cff2cb329b77df (diff) | |
download | frameworks_native-97c602c5af5f3ffd69009bf496d86347b71a2b4c.zip frameworks_native-97c602c5af5f3ffd69009bf496d86347b71a2b4c.tar.gz frameworks_native-97c602c5af5f3ffd69009bf496d86347b71a2b4c.tar.bz2 |
implement: "Add an ANativeWindow API for SurfaceFlinger to suggest an optimal buffer orientation"
Bug: 4487161
Change-Id: I883f34efe542c2a566d04966f873374f40c50092
Diffstat (limited to 'services/surfaceflinger/Transform.cpp')
-rw-r--r-- | services/surfaceflinger/Transform.cpp | 37 |
1 files changed, 1 insertions, 36 deletions
diff --git a/services/surfaceflinger/Transform.cpp b/services/surfaceflinger/Transform.cpp index 4cedcbf..24d5f9a 100644 --- a/services/surfaceflinger/Transform.cpp +++ b/services/surfaceflinger/Transform.cpp @@ -20,6 +20,7 @@ #include <utils/String8.h> #include <ui/Region.h> +#include "clz.h" #include "Transform.h" // --------------------------------------------------------------------------- @@ -28,42 +29,6 @@ namespace android { // --------------------------------------------------------------------------- -template <typename T> -static inline T min(T a, T b) { - return a<b ? a : b; -} -template <typename T> -static inline T min(T a, T b, T c) { - return min(a, min(b, c)); -} -template <typename T> -static inline T min(T a, T b, T c, T d) { - return min(a, b, min(c, d)); -} - -template <typename T> -static inline T max(T a, T b) { - return a>b ? a : b; -} -template <typename T> -static inline T max(T a, T b, T c) { - return max(a, max(b, c)); -} -template <typename T> -static inline T max(T a, T b, T c, T d) { - return max(a, b, max(c, d)); -} - -template <typename T> -static inline -void swap(T& a, T& b) { - T t(a); - a = b; - b = t; -} - -// --------------------------------------------------------------------------- - Transform::Transform() { reset(); } |