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

Unified Diff: blimp/client/app/compositor/browser_compositor.h

Issue 2624903006: Remove all blimp client code. (Closed)
Patch Set: Update buildbot configuration Created 3 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 | « blimp/client/app/blimp_startup.cc ('k') | blimp/client/app/compositor/browser_compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/client/app/compositor/browser_compositor.h
diff --git a/blimp/client/app/compositor/browser_compositor.h b/blimp/client/app/compositor/browser_compositor.h
deleted file mode 100644
index 9881d7c3587b93eed002f3869d4a323c69cd9de9..0000000000000000000000000000000000000000
--- a/blimp/client/app/compositor/browser_compositor.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright 2016 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 BLIMP_CLIENT_APP_COMPOSITOR_BROWSER_COMPOSITOR_H_
-#define BLIMP_CLIENT_APP_COMPOSITOR_BROWSER_COMPOSITOR_H_
-
-#include "base/macros.h"
-#include "blimp/client/support/compositor/blimp_embedder_compositor.h"
-#include "gpu/ipc/common/surface_handle.h"
-#include "ui/gfx/native_widget_types.h"
-
-namespace blimp {
-namespace client {
-class CompositorDependencies;
-
-// A version of a BlimpEmbedderCompositor that supplies a ContextProvider backed
-// by an AcceleratedWidget. The AcceleratedWidget is a platform specific hook
-// that the ContextProvider can use to render to the screen.
-class BrowserCompositor : public BlimpEmbedderCompositor {
- public:
- explicit BrowserCompositor(CompositorDependencies* compositor_dependencies);
- ~BrowserCompositor() override;
-
- // Sets the AcceleratedWidget that will be used to display to. Once provided,
- // the compositor will become visible and start drawing to the widget. When
- // the widget is taken away by passing gfx::kNullAcceleratedWidget, the
- // compositor will become invisible and will drop all resources being used to
- // draw to the screen.
- void SetAcceleratedWidget(gfx::AcceleratedWidget widget);
-
- // A callback to get notifed when the compositor performs a successful swap.
- void set_did_complete_swap_buffers_callback(base::Closure callback) {
- did_complete_swap_buffers_ = callback;
- }
-
- protected:
- // BlimpEmbedderCompositor implementation.
- void DidReceiveCompositorFrameAck() override;
-
- gpu::SurfaceHandle surface_handle_ = gpu::kNullSurfaceHandle;
- base::Closure did_complete_swap_buffers_;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(BrowserCompositor);
-};
-
-} // namespace client
-} // namespace blimp
-
-#endif // BLIMP_CLIENT_APP_COMPOSITOR_BROWSER_COMPOSITOR_H_
« no previous file with comments | « blimp/client/app/blimp_startup.cc ('k') | blimp/client/app/compositor/browser_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698