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

Side by Side Diff: mojo/cc/output_surface_mojo.cc

Issue 640893003: Move mojo/services/public/cpp TypeConverters to mojo/converters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix GN. Created 6 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "mojo/cc/output_surface_mojo.h" 5 #include "mojo/cc/output_surface_mojo.h"
6 6
7 #include "cc/output/compositor_frame.h" 7 #include "cc/output/compositor_frame.h"
8 #include "cc/output/output_surface_client.h" 8 #include "cc/output/output_surface_client.h"
9 #include "mojo/services/public/cpp/geometry/geometry_type_converters.h" 9 #include "mojo/converters/geometry_type_converters.h"
10 #include "mojo/services/public/cpp/surfaces/surfaces_type_converters.h" 10 #include "mojo/converters/surfaces_type_converters.h"
11 11
12 namespace mojo { 12 namespace mojo {
13 13
14 OutputSurfaceMojo::OutputSurfaceMojo( 14 OutputSurfaceMojo::OutputSurfaceMojo(
15 OutputSurfaceMojoClient* client, 15 OutputSurfaceMojoClient* client,
16 const scoped_refptr<cc::ContextProvider>& context_provider, 16 const scoped_refptr<cc::ContextProvider>& context_provider,
17 SurfacePtr surface, 17 SurfacePtr surface,
18 uint32_t id_namespace) 18 uint32_t id_namespace)
19 : cc::OutputSurface(context_provider), 19 : cc::OutputSurface(context_provider),
20 output_surface_mojo_client_(client), 20 output_surface_mojo_client_(client),
(...skipping 28 matching lines...) Expand all
49 surface_size_ = frame_size; 49 surface_size_ = frame_size;
50 } 50 }
51 51
52 surface_->SubmitFrame(SurfaceId::From(surface_id_), Frame::From(*frame)); 52 surface_->SubmitFrame(SurfaceId::From(surface_id_), Frame::From(*frame));
53 53
54 client_->DidSwapBuffers(); 54 client_->DidSwapBuffers();
55 client_->DidSwapBuffersComplete(); 55 client_->DidSwapBuffersComplete();
56 } 56 }
57 57
58 } // namespace mojo 58 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/cc/BUILD.gn ('k') | mojo/converters/BUILD.gn » ('j') | mojo/converters/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698