Remove references to libchrome
Removed dependencies on libchrome which was used mostly for logging
and switched over to standard Android log macros.
Bug: None
Test: `m -j32` still succeeds
Change-Id: I0a841c19c15c02f9a031af200e82837f9450d88a
diff --git a/libs/vr/libdvrgraphics/blur.cpp b/libs/vr/libdvrgraphics/blur.cpp
index 7365b0e..90e271e 100644
--- a/libs/vr/libdvrgraphics/blur.cpp
+++ b/libs/vr/libdvrgraphics/blur.cpp
@@ -11,8 +11,7 @@
#include <string>
-#include <base/logging.h>
-#include <base/strings/string_number_conversions.h>
+#include <log/log.h>
#include <private/dvr/debug.h>
#include <private/dvr/graphics/egl_image.h>
#include <private/dvr/graphics/shader_program.h>
@@ -78,7 +77,7 @@
width_(w),
height_(h),
fbo_q_free_(1 + num_blur_outputs) {
- CHECK(num_blur_outputs > 0);
+ LOG_ALWAYS_FATAL_IF(num_blur_outputs <= 0);
source_fbo_ =
CreateFbo(w, h, source_texture, source_texture_target, is_external);
fbo_half_ = CreateFbo(w / 2, h / 2, 0, target_texture_target, is_external);
@@ -113,7 +112,7 @@
}
GLuint Blur::DrawBlur(GLuint source_texture) {
- CHECK(fbo_q_free_.GetSize() >= 2);
+ LOG_ALWAYS_FATAL_IF(fbo_q_free_.GetSize() < 2);
// Downsample to half w x half h.
glBindFramebuffer(GL_READ_FRAMEBUFFER, source_fbo_.fbo);