gfxstream: Random clang format
BUG=239639751
TEST=compile
Change-Id: I9e1dc0b7c7eacdf3dbf7972051bd9a3506e25590
diff --git a/host/virtio-gpu-gfxstream-renderer.cpp b/host/virtio-gpu-gfxstream-renderer.cpp
index 05a2e65..63b438e 100644
--- a/host/virtio-gpu-gfxstream-renderer.cpp
+++ b/host/virtio-gpu-gfxstream-renderer.cpp
@@ -46,9 +46,9 @@
extern "C" {
#include "drm_fourcc.h"
#include "host-common/goldfish_pipe.h"
-#include "virgl_hw.h"
#include "render-utils/virtio-gpu-gfxstream-renderer-unstable.h"
#include "render-utils/virtio-gpu-gfxstream-renderer.h"
+#include "virgl_hw.h"
} // extern "C"
#if defined(_WIN32)
@@ -549,8 +549,7 @@
GFXSTREAM_ABORT(FatalError(ABORT_REASON_OTHER))
<< "Could not get address space device control ops!";
}
- mVirtioGpuTimelines =
- VirtioGpuTimelines::create(true);
+ mVirtioGpuTimelines = VirtioGpuTimelines::create(true);
VGPLOG("done");
return 0;
}
@@ -590,7 +589,6 @@
int createContext(VirtioGpuCtxId ctx_id, uint32_t nlen, const char* name,
uint32_t context_init) {
-
std::string contextName(name, nlen);
VGPLOG("ctxid: %u len: %u name: %s", ctx_id, nlen, contextName.c_str());
@@ -1038,7 +1036,6 @@
}
int attachIov(int resId, iovec* iov, int num_iovs) {
-
VGPLOG("resid: %d numiovs: %d", resId, num_iovs);
auto it = mResources.find(resId);
@@ -1053,7 +1050,6 @@
}
void detachIov(int resId, iovec** iov, int* num_iovs) {
-
auto it = mResources.find(resId);
if (it == mResources.end()) return;
@@ -1302,13 +1298,13 @@
return ret;
}
- void getCapset(uint32_t set, uint32_t *max_size) {
+ void getCapset(uint32_t set, uint32_t* max_size) {
// Only one capset right not
*max_size = sizeof(struct gfxstream::gfxstreamCapset);
}
void fillCaps(uint32_t set, void* caps) {
- struct gfxstream::gfxstreamCapset *capset =
+ struct gfxstream::gfxstreamCapset* capset =
reinterpret_cast<struct gfxstream::gfxstreamCapset*>(caps);
if (capset) {
memset(capset, 0, sizeof(*capset));
@@ -1325,9 +1321,9 @@
if (vk_emu && vk_emu->live) {
capset->deferredMapping = 1;
#if defined(__APPLE__) && defined(__arm64__)
- capset->blobAlignment = 16384;
+ capset->blobAlignment = 16384;
#else
- capset->blobAlignment = 4096;
+ capset->blobAlignment = 4096;
#endif
}
}
@@ -1524,7 +1520,6 @@
}
int resourceMap(uint32_t res_handle, void** hvaOut, uint64_t* sizeOut) {
-
if (feature_is_enabled(kFeature_ExternalBlob)) return -EINVAL;
auto it = mResources.find(res_handle);
@@ -1586,7 +1581,6 @@
}
int exportBlob(uint32_t res_handle, struct stream_renderer_handle* handle) {
-
auto it = mResources.find(res_handle);
if (it == mResources.end()) {
return -EINVAL;
@@ -1657,9 +1651,7 @@
}
#ifdef CONFIG_AEMU
- void setServiceOps(const GoldfishPipeServiceOps* ops) {
- mServiceOps = ops;
- }
+ void setServiceOps(const GoldfishPipeServiceOps* ops) { mServiceOps = ops; }
#endif // CONFIG_AEMU
private:
void allocResource(PipeResEntry& entry, iovec* iov, int num_iovs) {
@@ -1987,7 +1979,8 @@
[](QEMUFile* file) { (void)file; },
};
-static int stream_renderer_opengles_init(uint32_t display_width, uint32_t display_height, int renderer_flags) {
+static int stream_renderer_opengles_init(uint32_t display_width, uint32_t display_height,
+ int renderer_flags) {
GFXS_LOG("start. display dimensions: width %u height %u, renderer flags: 0x%x", display_width,
display_height, renderer_flags);