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

Unified Diff: components/viz/client/client_compositor_frame_sink.h

Issue 2907683004: Move ClientCompositorFrameSink to components/viz (Closed)
Patch Set: c Created 3 years, 7 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 | « components/viz/client/DEPS ('k') | components/viz/client/client_compositor_frame_sink.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/viz/client/client_compositor_frame_sink.h
diff --git a/services/ui/public/cpp/client_compositor_frame_sink.h b/components/viz/client/client_compositor_frame_sink.h
similarity index 87%
rename from services/ui/public/cpp/client_compositor_frame_sink.h
rename to components/viz/client/client_compositor_frame_sink.h
index d0b0aceb469d66bfbe7b478b001c5a66bf0742f7..407aa4130c4cf8850a37d536a3970c328a63f805 100644
--- a/services/ui/public/cpp/client_compositor_frame_sink.h
+++ b/components/viz/client/client_compositor_frame_sink.h
@@ -1,9 +1,9 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
+// Copyright 2017 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_WINDOW_COMPOSITOR_FRAME_SINK_H_
-#define SERVICES_UI_PUBLIC_CPP_WINDOW_COMPOSITOR_FRAME_SINK_H_
+#ifndef COMPONENTS_VIZ_CLIENT_CLIENT_COMPOSITOR_FRAME_SINK_H_
+#define COMPONENTS_VIZ_CLIENT_CLIENT_COMPOSITOR_FRAME_SINK_H_
#include "base/macros.h"
#include "cc/ipc/mojo_compositor_frame_sink.mojom.h"
@@ -14,7 +14,7 @@
#include "cc/surfaces/surface_id.h"
#include "mojo/public/cpp/bindings/binding.h"
-namespace ui {
+namespace viz {
class ClientCompositorFrameSink
: public cc::CompositorFrameSink,
@@ -56,12 +56,12 @@ class ClientCompositorFrameSink
cc::mojom::MojoCompositorFrameSinkPtr compositor_frame_sink_;
std::unique_ptr<mojo::Binding<cc::mojom::MojoCompositorFrameSinkClient>>
client_binding_;
- std::unique_ptr<base::ThreadChecker> thread_checker_;
+ THREAD_CHECKER(thread_checker_);
const bool enable_surface_synchronization_;
DISALLOW_COPY_AND_ASSIGN(ClientCompositorFrameSink);
};
-} // namespace ui
+} // namespace viz
-#endif // SERVICES_UI_PUBLIC_CPP_WINDOW_COMPOSITOR_FRAME_SINK_H_
+#endif // COMPONENTS_VIZ_CLIENT_CLIENT_COMPOSITOR_FRAME_SINK_H_
« no previous file with comments | « components/viz/client/DEPS ('k') | components/viz/client/client_compositor_frame_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698