Build most of the rest of the stream server core
Bug: 171711491
Change-Id: I5cc8a5304aec70b593e75ebbfc32376c6fab738f
diff --git a/stream-servers/RendererImpl.cpp b/stream-servers/RendererImpl.cpp
index 7dd6508..7b478ef 100644
--- a/stream-servers/RendererImpl.cpp
+++ b/stream-servers/RendererImpl.cpp
@@ -16,10 +16,10 @@
#include "RenderChannelImpl.h"
#include "RenderThread.h"
-#include "android/base/system/System.h"
-#include "android/utils/debug.h"
+#include "base/System.h"
+#include "snapshot/common.h"
+#include "host-common/logging.h"
-#include "emugl/common/logging.h"
#include "ErrorLog.h"
#include "FenceSync.h"
#include "FrameBuffer.h"
@@ -101,8 +101,8 @@
}
bool RendererImpl::initialize(int width, int height, bool useSubWindow, bool egl2egl) {
- if (android::base::System::get()->envGet("ANDROID_EMUGL_VERBOSE") == "1") {
- base_enable_verbose_logs();
+ if (android::base::getEnvironmentVariable("ANDROID_EMUGL_VERBOSE") == "1") {
+ // base_enable_verbose_logs();
}
if (mRenderWindow) {
@@ -325,7 +325,7 @@
void RendererImpl::getScreenshot(unsigned int nChannels, unsigned int* width,
unsigned int* height, std::vector<unsigned char>& pixels, int displayId,
- int desiredWidth, int desiredHeight, SkinRotation desiredRotation) {
+ int desiredWidth, int desiredHeight, int desiredRotation) {
auto fb = FrameBuffer::getFB();
if (fb) fb->getScreenshot(nChannels, width, height, pixels, displayId,
desiredWidth, desiredHeight, desiredRotation);
@@ -572,13 +572,11 @@
return &sVirtioGpuOps;
}
-void RendererImpl::snapshotOperationCallback(
- android::snapshot::Snapshotter::Operation op,
- android::snapshot::Snapshotter::Stage stage) {
+void RendererImpl::snapshotOperationCallback(int op, int stage) {
using namespace android::snapshot;
switch (op) {
- case Snapshotter::Operation::Load:
- if (stage == Snapshotter::Stage::Start) {
+ case SNAPSHOTTER_OPERATION_LOAD:
+ if (stage == SNAPSHOTTER_STAGE_START) {
#ifdef SNAPSHOT_PROFILE
android::base::System::Duration startTime =
android::base::System::get()->getUnixTimeUs();
@@ -593,7 +591,7 @@
1000);
#endif
}
- if (stage == Snapshotter::Stage::End) {
+ if (stage == SNAPSHOTTER_STAGE_END) {
mRenderWindow->setPaused(false);
}
break;