diff options
author | Steve Kondik <steve@cyngn.com> | 2016-08-01 13:21:58 -0700 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2016-08-01 13:24:26 -0700 |
commit | 193a8c93342e0b0677540cc70850e43317c54992 (patch) | |
tree | ebd2803e720358615fd027f4b246dd1a99c3d094 /services/surfaceflinger/ExSurfaceFlinger/ExLayer.cpp | |
parent | 534f85743096c2ac853329ab239b204d96efe665 (diff) | |
download | frameworks_native-193a8c93342e0b0677540cc70850e43317c54992.zip frameworks_native-193a8c93342e0b0677540cc70850e43317c54992.tar.gz frameworks_native-193a8c93342e0b0677540cc70850e43317c54992.tar.bz2 |
surfaceflinger: Isolate S3D code to msm8996 only
Change-Id: Ie4b77b55eb306c795b452c59d8ae3383bd2804bc
Diffstat (limited to 'services/surfaceflinger/ExSurfaceFlinger/ExLayer.cpp')
-rw-r--r-- | services/surfaceflinger/ExSurfaceFlinger/ExLayer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/services/surfaceflinger/ExSurfaceFlinger/ExLayer.cpp b/services/surfaceflinger/ExSurfaceFlinger/ExLayer.cpp index 5df34ed..875d47f 100644 --- a/services/surfaceflinger/ExSurfaceFlinger/ExLayer.cpp +++ b/services/surfaceflinger/ExSurfaceFlinger/ExLayer.cpp @@ -221,7 +221,7 @@ bool ExLayer::canAllowGPUForProtected() const { void ExLayer::drawWithOpenGL(const sp<const DisplayDevice>& hw, const Region& /* clip */, bool useIdentityTransform) const { const State& s(getDrawingState()); -#ifdef QTI_BSP +#if defined(QTI_BSP) && defined(SDM_TARGET) uint32_t s3d_fmt = 0; private_handle_t *pvt_handle = static_cast<private_handle_t *> (const_cast<native_handle_t*>(mActiveBuffer->handle)); @@ -278,14 +278,14 @@ void ExLayer::drawWithOpenGL(const sp<const DisplayDevice>& hw, texCoords[2] = vec2(right, 1.0f - bottom); texCoords[3] = vec2(right, 1.0f - top); -#ifdef QTI_BSP +#if defined(QTI_BSP) && defined(SDM_TARGET) computeGeometryS3D(hw, mMesh, mMeshLeftTop, mMeshRightBottom, s3d_fmt); #endif RenderEngine& engine(mFlinger->getRenderEngine()); engine.setupLayerBlending(mPremultipliedAlpha, isOpaque(s), s.alpha); -#ifdef QTI_BSP +#if defined(QTI_BSP) && defined(SDM_TARGET) if (s3d_fmt != HWC_S3DMODE_NONE) { engine.setScissor(0, 0, hw->getWidth(), hw->getHeight()); engine.drawMesh(mMeshLeftTop); @@ -293,7 +293,7 @@ void ExLayer::drawWithOpenGL(const sp<const DisplayDevice>& hw, } else { #endif engine.drawMesh(mMesh); -#ifdef QTI_BSP +#if defined(QTI_BSP) && defined(SDM_TARGET) } #endif |