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

Side by Side Diff: components/mus/ws/server_window_surface.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
« no previous file with comments | « components/mus/public/interfaces/gpu/display_compositor.mojom ('k') | gpu/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/ws/server_window_surface.h" 5 #include "components/mus/ws/server_window_surface.h"
6 6
7 #include "cc/output/compositor_frame.h" 7 #include "cc/output/compositor_frame.h"
8 #include "cc/quads/shared_quad_state.h" 8 #include "cc/quads/shared_quad_state.h"
9 #include "cc/quads/surface_draw_quad.h" 9 #include "cc/quads/surface_draw_quad.h"
10 #include "components/mus/public/cpp/surfaces/surfaces_type_converters.h" 10 #include "components/mus/public/cpp/surfaces/surfaces_type_converters.h"
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 input->visible_rect, input->needs_blending, 146 input->visible_rect, input->needs_blending,
147 underlay_surface->id()); 147 underlay_surface->id());
148 } 148 }
149 return true; 149 return true;
150 } 150 }
151 151
152 void ServerWindowSurface::ReturnResources( 152 void ServerWindowSurface::ReturnResources(
153 const cc::ReturnedResourceArray& resources) { 153 const cc::ReturnedResourceArray& resources) {
154 if (!client_ || !base::MessageLoop::current()) 154 if (!client_ || !base::MessageLoop::current())
155 return; 155 return;
156 client_->ReturnResources( 156 client_->ReturnResources(mojo::Array<cc::ReturnedResource>::From(resources));
157 mojo::Array<mojom::ReturnedResourcePtr>::From(resources));
158 } 157 }
159 158
160 void ServerWindowSurface::SetBeginFrameSource( 159 void ServerWindowSurface::SetBeginFrameSource(
161 cc::BeginFrameSource* begin_frame_source) { 160 cc::BeginFrameSource* begin_frame_source) {
162 // TODO(tansell): Implement this. 161 // TODO(tansell): Implement this.
163 } 162 }
164 163
165 } // namespace ws 164 } // namespace ws
166 } // namespace mus 165 } // namespace mus
OLDNEW
« no previous file with comments | « components/mus/public/interfaces/gpu/display_compositor.mojom ('k') | gpu/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698