Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1617)

Unified Diff: examples/spinning_cube/gles2_client_impl.cc

Issue 2236083002: Move mojo/public/c/gpu/* to mojo/public/c/include. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: foo Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « examples/spinning_cube/gles2_client_impl.h ('k') | examples/ui/jank/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/spinning_cube/gles2_client_impl.cc
diff --git a/examples/spinning_cube/gles2_client_impl.cc b/examples/spinning_cube/gles2_client_impl.cc
index 9e6479c187af1e190bc71e77cdda9f6e72cab20d..66c23148017a13db276f4e68b15af6b1540d0805 100644
--- a/examples/spinning_cube/gles2_client_impl.cc
+++ b/examples/spinning_cube/gles2_client_impl.cc
@@ -8,13 +8,13 @@
#include "examples/spinning_cube/gles2_client_impl.h"
-#include <math.h>
+#include <MGL/mgl.h>
+#include <MGL/mgl_onscreen.h>
#include <stdlib.h>
+
#include <cmath>
#include <utility>
-#include "mojo/public/c/gpu/MGL/mgl.h"
-#include "mojo/public/c/gpu/MGL/mgl_onscreen.h"
#include "mojo/public/cpp/environment/environment.h"
#include "mojo/public/cpp/system/time.h"
#include "mojo/public/cpp/utility/run_loop.h"
@@ -31,7 +31,7 @@ static inline constexpr bool operator &(const mojo::EventFlags& f1,
float CalculateDragDistance(const mojo::PointF& start,
const mojo::PointF& end) {
- return hypot(start.x - end.x, start.y - end.y);
+ return std::hypot(start.x - end.x, start.y - end.y);
}
float GetRandomColor() {
« no previous file with comments | « examples/spinning_cube/gles2_client_impl.h ('k') | examples/ui/jank/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698