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

Unified Diff: mojo/examples/compositor_app/compositor_host.h

Issue 640023004: cc: Make OutputSurface::SwapBuffers pure virtual (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@latinfo
Patch Set: rebase, comment, removed unused includes Created 6 years, 2 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 | « mojo/examples/compositor_app/compositor_app.cc ('k') | mojo/examples/compositor_app/compositor_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/examples/compositor_app/compositor_host.h
diff --git a/mojo/examples/compositor_app/compositor_host.h b/mojo/examples/compositor_app/compositor_host.h
deleted file mode 100644
index 37252121614080a3ec7ab8b82a99c08d1e47d58d..0000000000000000000000000000000000000000
--- a/mojo/examples/compositor_app/compositor_host.h
+++ /dev/null
@@ -1,61 +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 MOJO_EXAMPLES_COMPOSITOR_APP_COMPOSITOR_HOST_H_
-#define MOJO_EXAMPLES_COMPOSITOR_APP_COMPOSITOR_HOST_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "base/threading/thread.h"
-#include "cc/trees/layer_tree_host_client.h"
-#include "mojo/public/cpp/system/core.h"
-#include "ui/gfx/size.h"
-
-namespace cc {
-class Layer;
-class LayerTreeHost;
-} // namespace cc
-
-namespace mojo {
-namespace examples {
-class GLES2ClientImpl;
-
-class CompositorHost : public cc::LayerTreeHostClient {
- public:
- explicit CompositorHost(ScopedMessagePipeHandle command_buffer_handle);
- virtual ~CompositorHost();
-
- void SetSize(const gfx::Size& viewport_size);
-
- // cc::LayerTreeHostClient implementation.
- virtual void WillBeginMainFrame(int frame_id) override;
- virtual void DidBeginMainFrame() override;
- virtual void BeginMainFrame(const cc::BeginFrameArgs& args) override;
- virtual void Layout() override;
- virtual void ApplyViewportDeltas(const gfx::Vector2d& inner_delta,
- const gfx::Vector2d& outer_delta,
- float page_scale,
- float top_controls_delta) override;
- virtual void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta,
- float page_scale,
- float top_controls_delta) override;
- virtual void RequestNewOutputSurface(bool fallback) override;
- virtual void DidInitializeOutputSurface() override;
- virtual void WillCommit() override;
- virtual void DidCommit() override;
- virtual void DidCommitAndDrawFrame() override;
- virtual void DidCompleteSwapBuffers() override;
-
- private:
- void SetupScene();
-
- ScopedMessagePipeHandle command_buffer_handle_;
- scoped_ptr<cc::LayerTreeHost> tree_;
- scoped_refptr<cc::Layer> child_layer_;
- base::Thread compositor_thread_;
-};
-
-} // namespace examples
-} // namespace mojo
-
-#endif // MOJO_EXAMPLES_COMPOSITOR_APP_COMPOSITOR_HOST_H_
« no previous file with comments | « mojo/examples/compositor_app/compositor_app.cc ('k') | mojo/examples/compositor_app/compositor_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698