surfaceflinger: run clang-format on RenderEngine
Run clang-format on all files. In Program constructor, use mat4()
instead of manually construct a 4x4 identity matrix.
Test: builds
Change-Id: I84e5eec06d103383c715b1f03c521bbcca5bd92c
diff --git a/services/surfaceflinger/RenderEngine/GLExtensions.h b/services/surfaceflinger/RenderEngine/GLExtensions.h
index d81ed2a..ee7b446 100644
--- a/services/surfaceflinger/RenderEngine/GLExtensions.h
+++ b/services/surfaceflinger/RenderEngine/GLExtensions.h
@@ -20,9 +20,9 @@
#include <stdint.h>
#include <sys/types.h>
-#include <utils/String8.h>
-#include <utils/SortedVector.h>
#include <utils/Singleton.h>
+#include <utils/SortedVector.h>
+#include <utils/String8.h>
#include <EGL/egl.h>
#include <EGL/eglext.h>
@@ -32,8 +32,7 @@
namespace android {
// ---------------------------------------------------------------------------
-class GLExtensions : public Singleton<GLExtensions>
-{
+class GLExtensions : public Singleton<GLExtensions> {
friend class Singleton<GLExtensions>;
bool mHaveFramebufferObject : 1;
@@ -45,22 +44,16 @@
SortedVector<String8> mExtensionList;
GLExtensions(const GLExtensions&);
- GLExtensions& operator = (const GLExtensions&);
+ GLExtensions& operator=(const GLExtensions&);
protected:
GLExtensions();
public:
+ inline bool haveFramebufferObject() const { return mHaveFramebufferObject; }
- inline bool haveFramebufferObject() const {
- return mHaveFramebufferObject;
- }
-
- void initWithGLStrings(
- GLubyte const* vendor,
- GLubyte const* renderer,
- GLubyte const* version,
- GLubyte const* extensions);
+ void initWithGLStrings(GLubyte const* vendor, GLubyte const* renderer, GLubyte const* version,
+ GLubyte const* extensions);
char const* getVendor() const;
char const* getRenderer() const;
@@ -70,7 +63,6 @@
bool hasExtension(char const* extension) const;
};
-
// ---------------------------------------------------------------------------
}; // namespace android