fix [2483456] Video orientation is wrong on Droid for some videos
Change-Id: I450191f1335f57bffc51aff3e27295395847dbc0
diff --git a/libs/surfaceflinger/Transform.h b/libs/surfaceflinger/Transform.h
index 51d3e3f..2e5b893 100644
--- a/libs/surfaceflinger/Transform.h
+++ b/libs/surfaceflinger/Transform.h
@@ -69,10 +69,10 @@
int ty() const;
// modify the transform
- void reset();
- void set(float tx, float ty);
- void set(float a, float b, float c, float d);
- void set(uint32_t flags, float w, float h);
+ void reset();
+ void set(float tx, float ty);
+ void set(float a, float b, float c, float d);
+ status_t set(uint32_t flags, float w, float h);
// transform data
Rect makeBounds(int w, int h) const;
@@ -80,6 +80,9 @@
Region transform(const Region& reg) const;
Transform operator * (const Transform& rhs) const;
+ // for debugging
+ void dump(const char* name) const;
+
private:
struct vec3 {
float v[3];
@@ -113,11 +116,8 @@
Rect transform(const Rect& bounds) const;
uint32_t type() const;
static bool absIsOne(float f);
- static bool absEqual(float a, float b);
static bool isZero(float f);
- void dump(const char* name) const;
-
mat33 mMatrix;
mutable uint32_t mType;
};