Loading cmds/surfacereplayer/proto/Android.mk +1 −4 Original line number Diff line number Diff line Loading @@ -18,10 +18,7 @@ include $(CLEAR_VARS) LOCAL_SRC_FILES := $(call all-proto-files-under, src) LOCAL_SHARED_LIBRARIES := \ libprotobuf-cpp-full LOCAL_PROTOC_OPTIMIZE_TYPE := full LOCAL_PROTOC_OPTIMIZE_TYPE := lite LOCAL_MODULE := libtrace_proto LOCAL_MODULE_CLASS := STATIC_LIBRARIES Loading cmds/surfacereplayer/proto/src/trace.proto +1 −0 Original line number Diff line number Diff line syntax = "proto2"; option optimize_for = LITE_RUNTIME; message Trace { repeated Increment increment = 1; Loading cmds/surfacereplayer/replayer/Android.mk +3 −2 Original line number Diff line number Diff line Loading @@ -40,7 +40,8 @@ LOCAL_SHARED_LIBRARIES := \ libgui \ libui \ libutils \ libprotobuf-cpp-full \ libprotobuf-cpp-lite \ libbase \ LOCAL_STATIC_LIBRARIES := \ libtrace_proto \ Loading @@ -57,7 +58,7 @@ LOCAL_SRC_FILES := \ Main.cpp \ LOCAL_SHARED_LIBRARIES := \ libprotobuf-cpp-full \ libprotobuf-cpp-lite \ libsurfacereplayer \ libutils \ Loading cmds/surfacereplayer/replayer/Replayer.cpp +9 −3 Original line number Diff line number Diff line Loading @@ -20,6 +20,8 @@ #include <android/native_window.h> #include <android-base/file.h> #include <binder/IMemory.h> #include <gui/BufferQueue.h> Loading Loading @@ -61,11 +63,15 @@ Replayer::Replayer(const std::string& filename, bool replayManually, int numThre mStopTimeStamp(stopHere) { srand(RAND_COLOR_SEED); std::fstream input(filename, std::ios::in | std::ios::binary); std::string input; if (!android::base::ReadFileToString(filename, &input, true)) { std::cerr << "Trace did not load. Does " << filename << " exist?" << std::endl; abort(); } mLoaded = mTrace.ParseFromIstream(&input); mLoaded = mTrace.ParseFromString(input); if (!mLoaded) { std::cerr << "Trace did not load. Does " << filename << " exist?" << std::endl; std::cerr << "Trace did not load." << std::endl; abort(); } Loading services/surfaceflinger/Android.mk +1 −1 Original line number Diff line number Diff line Loading @@ -145,7 +145,7 @@ LOCAL_SHARED_LIBRARIES := \ libgui \ libpowermanager \ libvulkan \ libprotobuf-cpp-full \ libprotobuf-cpp-lite \ libhidl \ libhwbinder \ libbase \ Loading Loading
cmds/surfacereplayer/proto/Android.mk +1 −4 Original line number Diff line number Diff line Loading @@ -18,10 +18,7 @@ include $(CLEAR_VARS) LOCAL_SRC_FILES := $(call all-proto-files-under, src) LOCAL_SHARED_LIBRARIES := \ libprotobuf-cpp-full LOCAL_PROTOC_OPTIMIZE_TYPE := full LOCAL_PROTOC_OPTIMIZE_TYPE := lite LOCAL_MODULE := libtrace_proto LOCAL_MODULE_CLASS := STATIC_LIBRARIES Loading
cmds/surfacereplayer/proto/src/trace.proto +1 −0 Original line number Diff line number Diff line syntax = "proto2"; option optimize_for = LITE_RUNTIME; message Trace { repeated Increment increment = 1; Loading
cmds/surfacereplayer/replayer/Android.mk +3 −2 Original line number Diff line number Diff line Loading @@ -40,7 +40,8 @@ LOCAL_SHARED_LIBRARIES := \ libgui \ libui \ libutils \ libprotobuf-cpp-full \ libprotobuf-cpp-lite \ libbase \ LOCAL_STATIC_LIBRARIES := \ libtrace_proto \ Loading @@ -57,7 +58,7 @@ LOCAL_SRC_FILES := \ Main.cpp \ LOCAL_SHARED_LIBRARIES := \ libprotobuf-cpp-full \ libprotobuf-cpp-lite \ libsurfacereplayer \ libutils \ Loading
cmds/surfacereplayer/replayer/Replayer.cpp +9 −3 Original line number Diff line number Diff line Loading @@ -20,6 +20,8 @@ #include <android/native_window.h> #include <android-base/file.h> #include <binder/IMemory.h> #include <gui/BufferQueue.h> Loading Loading @@ -61,11 +63,15 @@ Replayer::Replayer(const std::string& filename, bool replayManually, int numThre mStopTimeStamp(stopHere) { srand(RAND_COLOR_SEED); std::fstream input(filename, std::ios::in | std::ios::binary); std::string input; if (!android::base::ReadFileToString(filename, &input, true)) { std::cerr << "Trace did not load. Does " << filename << " exist?" << std::endl; abort(); } mLoaded = mTrace.ParseFromIstream(&input); mLoaded = mTrace.ParseFromString(input); if (!mLoaded) { std::cerr << "Trace did not load. Does " << filename << " exist?" << std::endl; std::cerr << "Trace did not load." << std::endl; abort(); } Loading
services/surfaceflinger/Android.mk +1 −1 Original line number Diff line number Diff line Loading @@ -145,7 +145,7 @@ LOCAL_SHARED_LIBRARIES := \ libgui \ libpowermanager \ libvulkan \ libprotobuf-cpp-full \ libprotobuf-cpp-lite \ libhidl \ libhwbinder \ libbase \ Loading