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

Unified Diff: components/mus/public/cpp/surfaces/surfaces_type_converters.h

Issue 2092843002: Implement CompositorFrame Struct Traits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed dcheng's comments 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/surfaces/surfaces_type_converters.h
diff --git a/components/mus/public/cpp/surfaces/surfaces_type_converters.h b/components/mus/public/cpp/surfaces/surfaces_type_converters.h
deleted file mode 100644
index 3c3ef4ff021ac3d7305add81d24ac545ceaab9ee..0000000000000000000000000000000000000000
--- a/components/mus/public/cpp/surfaces/surfaces_type_converters.h
+++ /dev/null
@@ -1,56 +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_SURFACES_SURFACES_TYPE_CONVERTERS_H_
-#define COMPONENTS_MUS_PUBLIC_CPP_SURFACES_SURFACES_TYPE_CONVERTERS_H_
-
-#include <memory>
-
-#include "cc/ipc/compositor_frame.mojom.h"
-#include "cc/ipc/quads.mojom.h"
-#include "cc/ipc/surface_id.mojom.h"
-#include "cc/resources/returned_resource.h"
-#include "cc/resources/transferable_resource.h"
-#include "cc/surfaces/surface_id.h"
-#include "components/mus/public/cpp/surfaces/mojo_surfaces_export.h"
-#include "gpu/command_buffer/common/mailbox.h"
-#include "gpu/command_buffer/common/mailbox_holder.h"
-#include "gpu/command_buffer/common/sync_token.h"
-
-namespace cc {
-class CompositorFrame;
-class CompositorFrameMetadata;
-class DrawQuad;
-class RenderPass;
-class SharedQuadState;
-} // namespace cc
-
-namespace mojo {
-
-// Types from quads.mojom
-std::unique_ptr<cc::RenderPass> ConvertToRenderPass(
- const cc::mojom::RenderPassPtr& input,
- const cc::CompositorFrameMetadata& metadata);
-
-// Types from compositor_frame.mojom
-MOJO_SURFACES_EXPORT std::unique_ptr<cc::CompositorFrame>
-ConvertToCompositorFrame(const cc::mojom::CompositorFramePtr& input);
-
-template <>
-struct MOJO_SURFACES_EXPORT
- TypeConverter<cc::mojom::CompositorFramePtr, cc::CompositorFrame> {
- static cc::mojom::CompositorFramePtr Convert(
- const cc::CompositorFrame& input);
-};
-
-template <>
-struct MOJO_SURFACES_EXPORT TypeConverter<std::unique_ptr<cc::CompositorFrame>,
- cc::mojom::CompositorFramePtr> {
- static std::unique_ptr<cc::CompositorFrame> Convert(
- const cc::mojom::CompositorFramePtr& input);
-};
-
-} // namespace mojo
-
-#endif // COMPONENTS_MUS_PUBLIC_CPP_SURFACES_SURFACES_TYPE_CONVERTERS_H_

Powered by Google App Engine
This is Rietveld 408576698