summaryrefslogtreecommitdiff
path: root/libs/gui/TransactionTracing.cpp
diff options
context:
space:
mode:
author Huihong Luo <huisinro@google.com> 2022-08-18 13:02:26 -0700
committer Huihong Luo <huisinro@google.com> 2022-10-07 15:06:47 -0700
commitab8ffef9fe8845e72d19bd728da5266398cba002 (patch)
tree87dbbc2aca791c7bf881111d5f96359528e61952 /libs/gui/TransactionTracing.cpp
parentd55a464db01e53fd9e049e0ebc3b0d1690298e71 (diff)
Remove SurfaceInterceptor and surfacereplayer
Both are no longer used and thus obsolete. Ignore-AOSP-First: depends on other changes on master Bug: 241285477 Test: atest libgui_test libsurfaceflinger_unittest SurfaceFlinger_test Change-Id: I1858826b9eca27b355edb4236510e3aad1ddb399
Diffstat (limited to 'libs/gui/TransactionTracing.cpp')
-rw-r--r--libs/gui/TransactionTracing.cpp53
1 files changed, 0 insertions, 53 deletions
diff --git a/libs/gui/TransactionTracing.cpp b/libs/gui/TransactionTracing.cpp
deleted file mode 100644
index 59450fb411..0000000000
--- a/libs/gui/TransactionTracing.cpp
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Copyright 2020 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/TransactionTracing.h"
-#include "android/gui/ISurfaceComposer.h"
-
-#include <private/gui/ComposerServiceAIDL.h>
-
-namespace android {
-
-sp<TransactionTraceListener> TransactionTraceListener::sInstance = nullptr;
-std::mutex TransactionTraceListener::sMutex;
-
-TransactionTraceListener::TransactionTraceListener() {}
-
-sp<TransactionTraceListener> TransactionTraceListener::getInstance() {
- const std::lock_guard<std::mutex> lock(sMutex);
-
- if (sInstance == nullptr) {
- sInstance = new TransactionTraceListener;
-
- sp<gui::ISurfaceComposer> sf(ComposerServiceAIDL::getComposerService());
- sf->addTransactionTraceListener(sInstance);
- }
-
- return sInstance;
-}
-
-binder::Status TransactionTraceListener::onToggled(bool enabled) {
- ALOGD("TransactionTraceListener: onToggled listener called");
- mTracingEnabled = enabled;
-
- return binder::Status::ok();
-}
-
-bool TransactionTraceListener::isTracingEnabled() {
- return mTracingEnabled;
-}
-
-} // namespace android