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

Unified Diff: services/ui/public/cpp/output_surface.h

Issue 2337913003: Fork cc::OutputSurface into cc::CompositorFrameSink. (Closed)
Patch Set: cfsfork: android-vulkan Created 4 years, 3 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 | « services/ui/public/cpp/compositor_frame_sink.cc ('k') | services/ui/public/cpp/output_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/cpp/output_surface.h
diff --git a/services/ui/public/cpp/output_surface.h b/services/ui/public/cpp/output_surface.h
deleted file mode 100644
index 02b86ee27dc8b888a02a929e7904242fd9d73ed3..0000000000000000000000000000000000000000
--- a/services/ui/public/cpp/output_surface.h
+++ /dev/null
@@ -1,51 +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 SERVICES_UI_PUBLIC_CPP_OUTPUT_SURFACE_H_
-#define SERVICES_UI_PUBLIC_CPP_OUTPUT_SURFACE_H_
-
-#include "base/macros.h"
-#include "cc/output/output_surface.h"
-#include "cc/scheduler/begin_frame_source.h"
-#include "cc/surfaces/surface_id.h"
-#include "mojo/public/cpp/bindings/binding.h"
-#include "services/ui/public/cpp/window_surface.h"
-#include "services/ui/public/cpp/window_surface_client.h"
-
-namespace gpu {
-class GpuChannelHost;
-}
-
-namespace ui {
-
-class OutputSurface : public cc::OutputSurface, public WindowSurfaceClient {
- public:
- OutputSurface(scoped_refptr<gpu::GpuChannelHost> gpu_channel_host,
- 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<cc::BeginFrameSource> begin_frame_source_;
- std::unique_ptr<WindowSurface> surface_;
-
- DISALLOW_COPY_AND_ASSIGN(OutputSurface);
-};
-
-} // namespace ui
-
-#endif // SERVICES_UI_PUBLIC_CPP_OUTPUT_SURFACE_H_
« no previous file with comments | « services/ui/public/cpp/compositor_frame_sink.cc ('k') | services/ui/public/cpp/output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698