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

Side by Side Diff: components/mus/gpu/display_compositor/compositor_frame_sink_impl.cc

Issue 2019833002: Implement StructTraits for various cc and gpu types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mailbox_name by ref to make windows happy 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/mus/gpu/display_compositor/compositor_frame_sink_impl.h" 5 #include "components/mus/gpu/display_compositor/compositor_frame_sink_impl.h"
6 6
7 #include "cc/surfaces/surface_factory.h" 7 #include "cc/surfaces/surface_factory.h"
8 #include "components/mus/gpu/display_compositor/compositor_frame_sink_delegate.h " 8 #include "components/mus/gpu/display_compositor/compositor_frame_sink_delegate.h "
9 #include "components/mus/public/cpp/surfaces/surfaces_type_converters.h" 9 #include "components/mus/public/cpp/surfaces/surfaces_type_converters.h"
10 #include "components/mus/public/interfaces/compositor_frame.mojom.h" 10 #include "components/mus/public/interfaces/compositor_frame.mojom.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 } 75 }
76 factory_.SubmitCompositorFrame(surface_id_, std::move(compositor_frame), 76 factory_.SubmitCompositorFrame(surface_id_, std::move(compositor_frame),
77 base::Bind(&CallCallback, callback)); 77 base::Bind(&CallCallback, callback));
78 } 78 }
79 79
80 void CompositorFrameSinkImpl::ReturnResources( 80 void CompositorFrameSinkImpl::ReturnResources(
81 const cc::ReturnedResourceArray& resources) { 81 const cc::ReturnedResourceArray& resources) {
82 if (!client_) 82 if (!client_)
83 return; 83 return;
84 84
85 client_->ReturnResources( 85 client_->ReturnResources(mojo::Array<cc::ReturnedResource>::From(resources));
86 mojo::Array<mus::mojom::ReturnedResourcePtr>::From(resources));
87 } 86 }
88 87
89 void CompositorFrameSinkImpl::WillDrawSurface(cc::SurfaceId surface_id, 88 void CompositorFrameSinkImpl::WillDrawSurface(cc::SurfaceId surface_id,
90 const gfx::Rect& damage_rect) { 89 const gfx::Rect& damage_rect) {
91 NOTIMPLEMENTED(); 90 NOTIMPLEMENTED();
92 } 91 }
93 92
94 void CompositorFrameSinkImpl::SetBeginFrameSource( 93 void CompositorFrameSinkImpl::SetBeginFrameSource(
95 cc::BeginFrameSource* begin_frame_source) { 94 cc::BeginFrameSource* begin_frame_source) {
96 begin_frame_source_ = begin_frame_source; 95 begin_frame_source_ = begin_frame_source;
(...skipping 12 matching lines...) Expand all
109 void CompositorFrameSinkImpl::OnBeginFrameSourcePausedChanged(bool paused) { 108 void CompositorFrameSinkImpl::OnBeginFrameSourcePausedChanged(bool paused) {
110 // TODO(fsamuel): Implement this. 109 // TODO(fsamuel): Implement this.
111 } 110 }
112 111
113 void CompositorFrameSinkImpl::OnConnectionLost() { 112 void CompositorFrameSinkImpl::OnConnectionLost() {
114 delegate_->CompositorFrameSinkConnectionLost(sink_id_); 113 delegate_->CompositorFrameSinkConnectionLost(sink_id_);
115 } 114 }
116 115
117 } // namespace gpu 116 } // namespace gpu
118 } // namespace mus 117 } // namespace mus
OLDNEW
« no previous file with comments | « components/bitmap_uploader/bitmap_uploader.cc ('k') | components/mus/public/cpp/lib/output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698