1 #ifndef __DALI_SLP_PLATFORM_RESOURCE_BITMAP_REQUESTER_H__
2 #define __DALI_SLP_PLATFORM_RESOURCE_BITMAP_REQUESTER_H__
5 * Copyright (c) 2014 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.
21 #include "resource-requester-base.h"
22 #include "resource-thread-image.h"
23 #include "resource-thread-distance-field.h"
31 * Class to own request threads and manage resource requests for bitmaps
33 class ResourceBitmapRequester : public ResourceRequesterBase
38 * @param[in] resourceLoader The resource loader with which to communicate results
40 ResourceBitmapRequester( ResourceLoader& resourceLoader );
45 virtual ~ResourceBitmapRequester();
48 * @copydoc ResourceRequester::Pause()
53 * @copydoc ResourceRequester::Resume()
55 virtual void Resume();
58 * @copydoc ResourceRequester::LoadResource()
60 virtual void LoadResource( Integration::ResourceRequest& request );
63 * @copydoc ResourceRequester::LoadFurtherResources()
65 virtual Integration::LoadStatus LoadFurtherResources( Integration::ResourceRequest& request, LoadedResource partialResource );
68 * @copydoc ResourceRequester::SaveResource()
70 virtual void SaveResource(const Integration::ResourceRequest& request );
73 * @copydoc ResourceRequester::CancelLoad()
75 virtual void CancelLoad(Integration::ResourceId id, Integration::ResourceTypeId typeId);
78 * @copydoc ResourceLoader::LoadResourceSynchronously()
80 Integration::ResourcePointer LoadResourceSynchronously( const Integration::ResourceType& resourceType, const std::string& resourcePath );
83 * @copydoc PlatformAbstraction::GetClosestImageSize()
85 void GetClosestImageSize( const std::string& filename,
86 const ImageAttributes& attributes,
87 Vector2 &closestSize );
90 * @copydoc PlatformAbstraction::GetClosestImageSize()
92 void GetClosestImageSize( Integration::ResourcePointer resourceBuffer,
93 const ImageAttributes& attributes,
94 Vector2 &closestSize );
98 ResourceThreadImage* mThreadImage; ///< Image loader thread object
99 ResourceThreadDistanceField* mThreadDistanceField; ///< Distance field generator thread.
105 #endif // __DALI_SLP_PLATFORM_RESOURCE_BITMAP_REQUESTER_H__