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

Unified Diff: examples/ganesh_app/ganesh_view.h

Issue 1559723002: Update the UI examples. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-14
Patch Set: address feedback Created 4 years, 11 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/ganesh_app/ganesh_app.cc ('k') | examples/ganesh_app/ganesh_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/ganesh_app/ganesh_view.h
diff --git a/examples/ganesh_app/ganesh_view.h b/examples/ganesh_app/ganesh_view.h
deleted file mode 100644
index e2c0c210facc81e3b5dff911ba373053ad7b0d38..0000000000000000000000000000000000000000
--- a/examples/ganesh_app/ganesh_view.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright 2014 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_GANESH_APP_GANESH_VIEW_H_
-#define EXAMPLES_GANESH_APP_GANESH_VIEW_H_
-
-#include "examples/ganesh_app/texture_uploader.h"
-#include "mojo/gpu/gl_context.h"
-#include "mojo/services/surfaces/interfaces/surface_id.mojom.h"
-#include "mojo/services/view_manager/cpp/view_observer.h"
-#include "mojo/skia/ganesh_context.h"
-
-namespace mojo {
-class Shell;
-}
-
-namespace examples {
-
-class GaneshView : public TextureUploader::Client, public mojo::ViewObserver {
- public:
- GaneshView(mojo::Shell* shell, mojo::View* view);
- ~GaneshView() override;
-
- private:
- // mojo::ViewObserver implementation.
- void OnViewDestroyed(mojo::View* view) override;
- void OnViewBoundsChanged(mojo::View* view,
- const mojo::Rect& old_bounds,
- const mojo::Rect& new_bounds) override;
- void OnViewInputEvent(mojo::View* view, const mojo::EventPtr& event) override;
-
- // TextureUploader::Client implementation.
- void OnSurfaceIdAvailable(mojo::SurfaceIdPtr surface_id) override;
-
- void Draw(const mojo::Size& size);
-
- mojo::View* view_;
- base::WeakPtr<mojo::GLContext> gl_context_;
- scoped_ptr<mojo::GaneshContext> gr_context_;
- TextureUploader texture_uploader_;
-
- DISALLOW_COPY_AND_ASSIGN(GaneshView);
-};
-
-} // namespace examples
-
-#endif // EXAMPLES_GANESH_APP_GANESH_VIEW_H_
« no previous file with comments | « examples/ganesh_app/ganesh_app.cc ('k') | examples/ganesh_app/ganesh_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698