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

Unified Diff: components/mus/public/cpp/output_surface.h

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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
Index: components/mus/public/cpp/output_surface.h
diff --git a/components/mus/public/cpp/output_surface.h b/components/mus/public/cpp/output_surface.h
deleted file mode 100644
index 1b1feccff37058032e2618807bd927d28022feb2..0000000000000000000000000000000000000000
--- a/components/mus/public/cpp/output_surface.h
+++ /dev/null
@@ -1,45 +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 COMPONENTS_MUS_PUBLIC_CPP_OUTPUT_SURFACE_H_
-#define COMPONENTS_MUS_PUBLIC_CPP_OUTPUT_SURFACE_H_
-
-#include "base/macros.h"
-#include "cc/output/output_surface.h"
-#include "cc/surfaces/surface_id.h"
-#include "components/mus/public/cpp/window_surface.h"
-#include "components/mus/public/cpp/window_surface_client.h"
-#include "mojo/public/cpp/bindings/binding.h"
-
-namespace mus {
-
-class OutputSurface : public cc::OutputSurface, public WindowSurfaceClient {
- public:
- OutputSurface(const scoped_refptr<cc::ContextProvider>& context_provider,
- std::unique_ptr<WindowSurface> surface);
- ~OutputSurface() override;
-
- // cc::OutputSurface implementation.
- void SwapBuffers(cc::CompositorFrame frame) override;
- bool BindToClient(cc::OutputSurfaceClient* client) override;
- void DetachFromClient() override;
- void BindFramebuffer() override;
- uint32_t GetFramebufferCopyTextureFormat() override;
-
- private:
- // WindowSurfaceClient implementation:
- void OnResourcesReturned(
- WindowSurface* surface,
- mojo::Array<cc::ReturnedResource> resources) override;
-
- void SwapBuffersComplete();
-
- std::unique_ptr<WindowSurface> surface_;
-
- DISALLOW_COPY_AND_ASSIGN(OutputSurface);
-};
-
-} // namespace mus
-
-#endif // COMPONENTS_MUS_PUBLIC_CPP_OUTPUT_SURFACE_H_
« no previous file with comments | « components/mus/public/cpp/lib/window_tree_host_factory.cc ('k') | components/mus/public/cpp/property_type_converters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698