2 * Copyright (c) 2024 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include <dali/internal/graphics/gles/egl-sync-implementation.h>
23 #include <dali/integration-api/debug.h>
26 #include <dali/internal/graphics/gles/egl-debug.h>
27 #include <dali/internal/graphics/gles/egl-implementation.h>
29 #if defined(DEBUG_ENABLED)
30 Debug::Filter* gLogSyncFilter = Debug::Filter::New(Debug::NoLogging, false, "LOG_FENCE_SYNC");
39 EglSyncObject::EglSyncObject(EglImplementation& eglImpl)
41 mEglImplementation(eglImpl)
45 EglSyncObject::~EglSyncObject()
49 bool EglSyncObject::IsSynced()
54 void EglSyncObject::Wait()
58 void EglSyncObject::ClientWait()
62 EglSyncImplementation::EglSyncImplementation()
63 : mEglImplementation(NULL),
64 mSyncInitialized(false),
65 mSyncInitializeFailed(false)
69 EglSyncImplementation::~EglSyncImplementation()
73 void EglSyncImplementation::Initialize(EglImplementation* eglImpl)
75 mEglImplementation = eglImpl;
78 Integration::GraphicsSyncAbstraction::SyncObject* EglSyncImplementation::CreateSyncObject()
80 DALI_ASSERT_ALWAYS(mEglImplementation && "Sync Implementation not initialized");
81 return new EglSyncObject(*mEglImplementation);
84 void EglSyncImplementation::DestroySyncObject(Integration::GraphicsSyncAbstraction::SyncObject* syncObject)
86 DALI_ASSERT_ALWAYS(mEglImplementation && "Sync Implementation not initialized");
87 delete static_cast<EglSyncObject*>(syncObject);
90 void EglSyncImplementation::InitializeEglSync()
94 } // namespace Adaptor
95 } // namespace Internal