Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b770e204 authored by John Reck's avatar John Reck Committed by Android (Google) Code Review
Browse files

Merge "Remove obsolete DONT_USE_FENCE_SYNC option"

parents 0684a51d 56c4b15a
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -55,7 +55,6 @@ cc_library_shared {
        "DisplayEventDispatcher.cpp",
        "DisplayEventReceiver.cpp",
        "GLConsumer.cpp",
        "GuiConfig.cpp",
        "IConsumerListener.cpp",
        "IDisplayEventConnection.cpp",
        "IGraphicBufferConsumer.cpp",

libs/gui/GuiConfig.cpp

deleted100644 → 0
+0 −31
Original line number Diff line number Diff line
/*
 * Copyright (C) 2012 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#include <gui/GuiConfig.h>

namespace android {

void appendGuiConfigString(std::string& configStr) {
    static const char* config =
            " [libgui"
#ifdef DONT_USE_FENCE_SYNC
            " DONT_USE_FENCE_SYNC"
#endif
            "]";
    configStr.append(config);
}

}; // namespace android
+0 −8
Original line number Diff line number Diff line
@@ -71,15 +71,7 @@ bool SyncFeatures::useNativeFenceSync() const {
    return mHasNativeFenceSync;
}
bool SyncFeatures::useFenceSync() const {
#ifdef DONT_USE_FENCE_SYNC
    // on some devices it's better to not use EGL_KHR_fence_sync
    // even if they have it
    return false;
#else
    // currently we shall only attempt to use EGL_KHR_fence_sync if
    // USE_FENCE_SYNC is set in our makefile
    return !mHasNativeFenceSync && mHasFenceSync;
#endif
}
bool SyncFeatures::useWaitSync() const {
    return (useNativeFenceSync() || useFenceSync()) && mHasWaitSync;

libs/gui/include/gui/GuiConfig.h

deleted100644 → 0
+0 −29
Original line number Diff line number Diff line
/*
 * Copyright (C) 2012 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef ANDROID_GUI_CONFIG_H
#define ANDROID_GUI_CONFIG_H

#include <string>

namespace android {

// Append the libgui configuration details to configStr.
void appendGuiConfigString(std::string& configStr);

}; // namespace android

#endif /*ANDROID_GUI_CONFIG_H*/
+0 −1
Original line number Diff line number Diff line
@@ -120,7 +120,6 @@ cc_library_shared {
        "PixelFormat.cpp",
        "PublicFormat.cpp",
        "Size.cpp",
        "UiConfig.cpp",
    ],

    include_dirs: [
Loading