X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=adaptors%2Ftizen%2Fnative-render-surface-tizen.cpp;h=7af6a74acc46b06360b953ceaa464fdd7e4f7510;hb=395a7f76822a4897bc9d0d94b746074d82e7024b;hp=787507fd35f3895256b81b0375253b059cd3af8f;hpb=fb03b3ebb919a211ba6ba01d0a284eef02f1022a;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/adaptors/tizen/native-render-surface-tizen.cpp b/adaptors/tizen/native-render-surface-tizen.cpp index 787507f..7af6a74 100644 --- a/adaptors/tizen/native-render-surface-tizen.cpp +++ b/adaptors/tizen/native-render-surface-tizen.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2017 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -51,6 +51,7 @@ struct NativeRenderSurface::Impl mTbmFormat( isTransparent ? TBM_FORMAT_ARGB8888 : TBM_FORMAT_RGB888 ), mOwnSurface( false ), mDrawableCompleted( false ), + mTbmQueue( NULL ), mConsumeSurface( NULL ), mThreadSynchronization( NULL ) { @@ -129,7 +130,7 @@ void NativeRenderSurface::CreateEglSurface( EglInterface& egl ) Internal::Adaptor::EglImplementation& eglImpl = static_cast( egl ); - eglImpl.CreateSurfaceWindow( (EGLNativeWindowType)mImpl->mTbmQueue, mImpl->mColorDepth ); + eglImpl.CreateSurfaceWindow( reinterpret_cast< EGLNativeWindowType >( mImpl->mTbmQueue ), mImpl->mColorDepth ); } void NativeRenderSurface::DestroyEglSurface( EglInterface& egl ) @@ -151,7 +152,7 @@ bool NativeRenderSurface::ReplaceEGLSurface( EglInterface& egl ) Internal::Adaptor::EglImplementation& eglImpl = static_cast( egl ); - return eglImpl.ReplaceSurfaceWindow( (EGLNativeWindowType)mImpl->mTbmQueue ); // reinterpret_cast does not compile + return eglImpl.ReplaceSurfaceWindow( reinterpret_cast< EGLNativeWindowType >( mImpl->mTbmQueue ) ); } void NativeRenderSurface::StartRender()