#define DALI_INTERNAL_WINDOWSYSTEM_COMMON_WINDOW_RENDER_SURFACE_H
/*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 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.
*
*/
-// INTERNAL INCLUDES
-#include <dali/internal/graphics/common/graphics-interface.h>
-
-#ifdef DALI_ADAPTOR_COMPILATION
-#include <dali/integration-api/egl-interface.h>
-#include <dali/integration-api/render-surface-interface.h>
-#else
-#include <dali/integration-api/adaptors/egl-interface.h>
-#include <dali/integration-api/adaptors/render-surface-interface.h>
-#endif
-
// EXTERNAL INCLUDES
#include <dali/public-api/signals/connection-tracker.h>
#include <dali/public-api/signals/dali-signal.h>
+// INTERNAL INCLUDES
+#include <dali/integration-api/adaptor-framework/egl-interface.h>
+#include <dali/integration-api/adaptor-framework/render-surface-interface.h>
+#include <dali/internal/graphics/common/graphics-interface.h>
+
namespace Dali
{
*/
virtual Integration::StencilBufferAvailable GetStencilBufferRequired() override;
- /**
- * @copydoc Dali::Integration::RenderSurface::SetDamagedRect()
- */
- virtual Rect<int32_t> SetDamagedRect( Rect<int32_t> damagedRectArray ) override;
-
- /**
- * @copydoc Dali::Integration::RenderSurface::GetBufferAge()
- */
- virtual int32_t GetBufferAge() override;
-
private:
/**
*/
void ProcessRotationRequest();
- /*
- * @brief MergeRect
- */
- std::vector<int32_t> MergeRect( Rect<int32_t> damagedRectArray, int bufferAge );
-
protected:
// Undefined
OutputSignalType mOutputTransformedSignal;
int mRotationAngle;
int mScreenRotationAngle;
- int mBufferAge;
- int mPreBufferAge;
bool mOwnSurface; ///< Whether we own the surface (responsible for deleting it)
bool mRotationSupported;
bool mRotationFinished;
uint32_t mDpiHorizontal;
uint32_t mDpiVertical;
- Rect<int32_t> mPreDamagedRect[5]; ///< The GPU driver can has up to four buffers. And one is for area calculation.
}; // class WindowRenderSurface
} // namespace Adaptor