X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fintegration-api%2Fadaptor-framework%2Frender-surface-interface.h;h=25ad128ba7a9a78b008748b88424ee38b71badf0;hb=8786ea8fbb26a9cb555a613518cf108017467c69;hp=f7805541882926b1c5493865b211d4efac40a0ed;hpb=876381bc4dcb9933f72e095eea596c3136028436;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/integration-api/adaptor-framework/render-surface-interface.h b/dali/integration-api/adaptor-framework/render-surface-interface.h index f780554..25ad128 100644 --- a/dali/integration-api/adaptor-framework/render-surface-interface.h +++ b/dali/integration-api/adaptor-framework/render-surface-interface.h @@ -2,7 +2,7 @@ #define DALI_RENDER_SURFACE_INTERFACE_H /* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 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. @@ -19,9 +19,10 @@ */ // EXTERNAL INCLUDES -#include #include #include +#include +#include namespace Dali { @@ -39,6 +40,11 @@ class GraphicsInterface; } /** + * @brief The position and size of the render surface. + */ +typedef Dali::Rect PositionSize; + +/** * @brief Interface for a render surface onto which Dali draws. * * Dali::Adaptor requires a render surface to draw on to. This is @@ -51,10 +57,17 @@ class GraphicsInterface; * implementation of RenderSurface for the given platform */ -class RenderSurfaceInterface : public Dali::Integration::RenderSurface +class RenderSurfaceInterface { public: + enum Type + { + WINDOW_RENDER_SURFACE, + PIXMAP_RENDER_SURFACE, + NATIVE_RENDER_SURFACE + }; + /** * @brief Constructor * Inlined as this is a pure abstract interface @@ -154,7 +167,7 @@ public: /** * @brief Gets the surface type */ - virtual Dali::Integration::RenderSurface::Type GetSurfaceType() = 0; + virtual Dali::RenderSurfaceInterface::Type GetSurfaceType() = 0; /** * @brief Makes the graphics context current