1 #ifndef __DALI_INTERNAL_RENDER_REQUEST_H__
2 #define __DALI_INTERNAL_RENDER_REQUEST_H__
5 * Copyright (c) 2015 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
24 #include <egl-interface.h>
25 #include <render-surface.h> // needed for Dali::RenderSurface
31 class DisplayConnection;
43 REPLACE_SURFACE, // Request to replace surface
48 * @param[in] type The type of the request
50 RenderRequest( Request type );
53 * @return the type of the request
61 class ReplaceSurfaceRequest : public RenderRequest
68 ReplaceSurfaceRequest();
72 * @param[in] newSurface The new surface to use
74 void SetSurface(RenderSurface* newSurface);
77 * @return the new surface
79 RenderSurface* GetSurface();
82 * Called when the request has been completed to set the result.
84 void ReplaceCompleted();
87 * @return true if the replace has completed.
89 bool GetReplaceCompleted();
92 RenderSurface* mNewSurface; ///< The new surface to use.
93 unsigned int mReplaceCompleted; ///< Set to true when the replace has completed.
96 } // namespace Adaptor
98 } // namespace Internal
102 #endif // __DALI_INTERNAL_RENDER_REQUEST_H__