Merge "Added PixelBuffer for image loading and operations." into devel/master
[platform/core/uifw/dali-adaptor.git] / adaptors / emscripten / sdl-render-controller.h
1 #ifndef __SDL_RENDER_CONTROLLER_H__
2 #define __SDL_RENDER_CONTROLLER_H__
3
4 /*
5 Copyright (c) 2000-2012 Samsung Electronics Co., Ltd All Rights Reserved
6
7 This file is part of Dali
8
9 PROPRIETARY/CONFIDENTIAL
10
11 This software is the confidential and proprietary information of
12 SAMSUNG ELECTRONICS ("Confidential Information"). You shall not
13 disclose such Confidential Information and shall use it only in
14 accordance with the terms of the license agreement you entered
15 into with SAMSUNG ELECTRONICS.
16
17 SAMSUNG make no representations or warranties about the suitability
18 of the software, either express or implied, including but not limited
19 to the implied warranties of merchantability, fitness for a particular
20 purpose, or non-infringement. SAMSUNG shall not be liable for any
21 damages suffered by licensee as a result of using, modifying or
22 distributing this software or its derivatives.
23 */
24
25 // INTERNAL INCLUDES
26 #include <dali/integration-api/render-controller.h>
27
28 namespace Dali
29 {
30
31 /**
32  * This class is a stubb RenderController to pass to core in the Emscripten/browser environment.
33  *
34  */
35 class DALI_IMPORT_API SdlRenderController : public Dali::Integration::RenderController
36 {
37 public:
38   SdlRenderController()
39   {
40     Initialize();
41   }
42
43   ~SdlRenderController()
44   {
45   }
46
47   /**
48    * @copydoc Dali::Integration::RenderController::RequestUpdate()
49    */
50   virtual void RequestUpdate()
51   {
52     mRequestUpdateCalled = true;
53   }
54
55   /**
56    * @copydoc Dali::Integration::RenderController::RequestProcessEventsOnIdle()
57    */
58   virtual void RequestProcessEventsOnIdle()
59   {
60   }
61
62   /**
63    * @copydoc Dali::Integration::RenderController::RequestNotificationEventOnIdle()
64    */
65   virtual void RequestNotificationEventOnIdle()
66   {
67     mRequestNotificationEventOnIdleCalled = true;
68   }
69
70   void Initialize()
71   {
72     mRequestUpdateCalled = false;
73     mRequestNotificationEventOnIdleCalled = false;
74   }
75
76 private:
77   bool mRequestUpdateCalled;
78   bool mRequestNotificationEventOnIdleCalled;
79 };
80
81 } // Dali
82
83 #endif