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

Unified Diff: examples/sample_app/gles2_client_impl.h

Issue 967563002: Rename sample_app -> spinning_cube. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rebase. Created 5 years, 10 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/sample_app/BUILD.gn ('k') | examples/sample_app/gles2_client_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/sample_app/gles2_client_impl.h
diff --git a/examples/sample_app/gles2_client_impl.h b/examples/sample_app/gles2_client_impl.h
deleted file mode 100644
index b6756781155edbb2327a0045ddc730c0c49115d2..0000000000000000000000000000000000000000
--- a/examples/sample_app/gles2_client_impl.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef EXAMPLES_SAMPLE_APP_GLES2_CLIENT_IMPL_H_
-#define EXAMPLES_SAMPLE_APP_GLES2_CLIENT_IMPL_H_
-
-#include "examples/sample_app/spinning_cube.h"
-#include "mojo/public/c/gles2/gles2.h"
-#include "mojo/services/geometry/public/interfaces/geometry.mojom.h"
-#include "mojo/services/native_viewport/public/interfaces/native_viewport.mojom.h"
-
-namespace examples {
-
-class GLES2ClientImpl {
- public:
- explicit GLES2ClientImpl(mojo::CommandBufferPtr command_buffer);
- virtual ~GLES2ClientImpl();
-
- void SetSize(const mojo::Size& size);
- void HandleInputEvent(const mojo::Event& event);
- void Draw();
-
- private:
- void ContextLost();
- static void ContextLostThunk(void* closure);
- void WantToDraw();
-
- MojoTimeTicks last_time_;
- mojo::Size size_;
- SpinningCube cube_;
- mojo::Point capture_point_;
- mojo::Point last_drag_point_;
- MojoTimeTicks drag_start_time_;
- bool waiting_to_draw_;
-
- MojoGLES2Context context_;
-
- MOJO_DISALLOW_COPY_AND_ASSIGN(GLES2ClientImpl);
-};
-
-} // namespace examples
-
-#endif // EXAMPLES_SAMPLE_APP_GLES2_CLIENT_IMPL_H_
« no previous file with comments | « examples/sample_app/BUILD.gn ('k') | examples/sample_app/gles2_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698