X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=adaptors%2Fbase%2Frender-helper.h;h=4e12afe00768a13dce319a0288c488b246a531a6;hb=ca6b7c6dff74b55ba756226228969ba59a161709;hp=62266fa97874c49748fd7f51182f4b1b1d2086bc;hpb=d370ec687e37a2adb6cc230625bb289361f11446;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/adaptors/base/render-helper.h b/adaptors/base/render-helper.h index 62266fa..4e12afe 100644 --- a/adaptors/base/render-helper.h +++ b/adaptors/base/render-helper.h @@ -1,8 +1,8 @@ -#ifndef __DALI_INTERNAL_RENDER_HELPER_H__ -#define __DALI_INTERNAL_RENDER_HELPER_H__ +#ifndef DALI_INTERNAL_RENDER_HELPER_H +#define DALI_INTERNAL_RENDER_HELPER_H /* - * Copyright (c) 2015 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. @@ -102,6 +102,13 @@ public: void ReplaceSurface( RenderSurface* newSurface ); /** + * Resize the rendering surface. + * + * @note Called from render thread + */ + void ResizeSurface(); + + /** * Shuts down EGL. * * @note Called from render thread @@ -121,8 +128,10 @@ public: * Called after core has rendered the scene * * @note Called from render thread + * + * @param[in] renderToFbo Whether to render to a Frame Buffer Object. */ - void PostRender(); + void PostRender( bool renderToFbo ); private: @@ -140,6 +149,7 @@ private: // Data RenderSurface* mSurface; ///< Current surface Dali::DisplayConnection* mDisplayConnection; ///< Display connection bool mSurfaceReplaced; ///< True when new surface has been initialized. + bool mSurfaceResized; ///< True when the surface is resized. }; } // namespace Adaptor @@ -148,4 +158,4 @@ private: // Data } // namespace Dali -#endif // __DALI_INTERNAL_RENDER_HELPER_H__ +#endif // DALI_INTERNAL_RENDER_HELPER_H