diff options
| author | 2010-03-09 19:17:47 -0800 | |
|---|---|---|
| committer | 2010-03-11 12:55:39 -0800 | |
| commit | 015b59756eecdbec46f9aeda620ad0de1c8c9a23 (patch) | |
| tree | 24ace4ee0eb7a936fc81d3146ce5adda1636d373 /libs/surfaceflinger/LayerBase.cpp | |
| parent | 6fc4fe98ab72c5852b87f1f8699b9808c0dbecc5 (diff) | |
fix [2483456] Video orientation is wrong on Droid for some videos
Change-Id: I450191f1335f57bffc51aff3e27295395847dbc0
Diffstat (limited to 'libs/surfaceflinger/LayerBase.cpp')
| -rw-r--r-- | libs/surfaceflinger/LayerBase.cpp | 21 | 
1 files changed, 10 insertions, 11 deletions
diff --git a/libs/surfaceflinger/LayerBase.cpp b/libs/surfaceflinger/LayerBase.cpp index fdf6627e42ea..140f10cdd7f1 100644 --- a/libs/surfaceflinger/LayerBase.cpp +++ b/libs/surfaceflinger/LayerBase.cpp @@ -54,7 +54,7 @@ LayerBase::LayerBase(SurfaceFlinger* flinger, DisplayID display)        mOrientation(0),        mLeft(0), mTop(0),        mTransactionFlags(0), -      mPremultipliedAlpha(true), +      mPremultipliedAlpha(true), mDebug(false),        mInvalidate(0)  {      const DisplayHardware& hw(flinger->graphicPlane(0).displayHardware()); @@ -65,6 +65,14 @@ LayerBase::~LayerBase()  {  } +void LayerBase::setName(const String8& name) { +    mName = name; +} + +String8 LayerBase::getName() const { +    return mName; +} +  const GraphicPlane& LayerBase::graphicPlane(int dpy) const  {       return mFlinger->graphicPlane(dpy); @@ -698,8 +706,7 @@ int32_t LayerBaseClient::sIdentity = 0;  LayerBaseClient::LayerBaseClient(SurfaceFlinger* flinger, DisplayID display,          const sp<Client>& client, int32_t i) -    : LayerBase(flinger, display), lcblk(NULL), client(client), -      mDebug(false), mIndex(i), +    : LayerBase(flinger, display), lcblk(NULL), client(client), mIndex(i),        mIdentity(uint32_t(android_atomic_inc(&sIdentity)))  {      lcblk = new SharedBufferServer( @@ -724,14 +731,6 @@ LayerBaseClient::~LayerBaseClient()      delete lcblk;  } -void LayerBaseClient::setName(const String8& name) { -    mName = name; -} - -String8 LayerBaseClient::getName() const { -    return mName; -} -  int32_t LayerBaseClient::serverIndex() const   {      sp<Client> client(this->client.promote());  |