diff options
| author | 2011-08-23 18:03:18 -0700 | |
|---|---|---|
| committer | 2011-08-23 21:10:35 -0700 | |
| commit | 2143fe05e3a1aeae641ca126e76db82d17e8b8e6 (patch) | |
| tree | fae61baf7497e29e2a57ab2ed6713ce124a7aa23 /services/surfaceflinger/SurfaceTextureLayer.cpp | |
| parent | 7f76a3cf667b95caccb3e6d3f5cf160180717340 (diff) | |
Add a debug option to turn the "transformation hint" off
transformation hint is disabled with:
adb shell service call SurfaceFlinger 1009 i32 1
Change-Id: I9aafe6f280f88ce41569ed69a06dc522b10e3a88
Diffstat (limited to 'services/surfaceflinger/SurfaceTextureLayer.cpp')
| -rw-r--r-- | services/surfaceflinger/SurfaceTextureLayer.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/services/surfaceflinger/SurfaceTextureLayer.cpp b/services/surfaceflinger/SurfaceTextureLayer.cpp index 79cd0c31408a..4390ca19fc24 100644 --- a/services/surfaceflinger/SurfaceTextureLayer.cpp +++ b/services/surfaceflinger/SurfaceTextureLayer.cpp @@ -57,16 +57,10 @@ status_t SurfaceTextureLayer::queueBuffer(int buf, int64_t timestamp, status_t res = SurfaceTexture::queueBuffer(buf, timestamp, outWidth, outHeight, outTransform); - sp<Layer> layer(mLayer.promote()); if (layer != NULL) { - uint32_t orientation = layer->getOrientation(); - if (orientation & Transform::ROT_INVALID) { - orientation = 0; - } - *outTransform = orientation; + *outTransform = layer->getTransformHint(); } - return res; } |