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

Side by Side Diff: mojo/examples/surfaces_app/child_gl_impl.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: Restore the directory and component structures and target names. 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
« no previous file with comments | « mojo/examples/surfaces_app/BUILD.gn ('k') | mojo/examples/surfaces_app/child_impl.cc » ('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 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/examples/surfaces_app/child_gl_impl.h" 5 #include "mojo/examples/surfaces_app/child_gl_impl.h"
6 6
7 #ifndef GL_GLEXT_PROTOTYPES 7 #ifndef GL_GLEXT_PROTOTYPES
8 #define GL_GLEXT_PROTOTYPES 8 #define GL_GLEXT_PROTOTYPES
9 #endif 9 #endif
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "cc/output/compositor_frame.h" 13 #include "cc/output/compositor_frame.h"
14 #include "cc/output/delegated_frame_data.h" 14 #include "cc/output/delegated_frame_data.h"
15 #include "cc/quads/render_pass.h" 15 #include "cc/quads/render_pass.h"
16 #include "cc/quads/texture_draw_quad.h" 16 #include "cc/quads/texture_draw_quad.h"
17 #include "gpu/GLES2/gl2chromium.h" 17 #include "gpu/GLES2/gl2chromium.h"
18 #include "gpu/GLES2/gl2extchromium.h" 18 #include "gpu/GLES2/gl2extchromium.h"
19 #include "gpu/command_buffer/common/mailbox.h" 19 #include "gpu/command_buffer/common/mailbox.h"
20 #include "gpu/command_buffer/common/mailbox_holder.h" 20 #include "gpu/command_buffer/common/mailbox_holder.h"
21 #include "mojo/converters/geometry/geometry_type_converters.h"
22 #include "mojo/converters/surfaces/surfaces_type_converters.h"
21 #include "mojo/examples/surfaces_app/surfaces_util.h" 23 #include "mojo/examples/surfaces_app/surfaces_util.h"
22 #include "mojo/public/cpp/application/application_connection.h" 24 #include "mojo/public/cpp/application/application_connection.h"
23 #include "mojo/public/cpp/environment/environment.h" 25 #include "mojo/public/cpp/environment/environment.h"
24 #include "mojo/services/public/cpp/geometry/geometry_type_converters.h"
25 #include "mojo/services/public/cpp/surfaces/surfaces_type_converters.h"
26 #include "mojo/services/public/interfaces/surfaces/surface_id.mojom.h" 26 #include "mojo/services/public/interfaces/surfaces/surface_id.mojom.h"
27 #include "mojo/services/public/interfaces/surfaces/surfaces.mojom.h" 27 #include "mojo/services/public/interfaces/surfaces/surfaces.mojom.h"
28 #include "third_party/khronos/GLES2/gl2.h" 28 #include "third_party/khronos/GLES2/gl2.h"
29 #include "third_party/khronos/GLES2/gl2ext.h" 29 #include "third_party/khronos/GLES2/gl2ext.h"
30 #include "ui/gfx/rect.h" 30 #include "ui/gfx/rect.h"
31 #include "ui/gfx/transform.h" 31 #include "ui/gfx/transform.h"
32 32
33 namespace mojo { 33 namespace mojo {
34 namespace examples { 34 namespace examples {
35 35
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 surface_->SubmitFrame(mojo::SurfaceId::From(id_), mojo::Frame::From(*frame)); 180 surface_->SubmitFrame(mojo::SurfaceId::From(id_), mojo::Frame::From(*frame));
181 181
182 base::MessageLoop::current()->PostDelayedTask( 182 base::MessageLoop::current()->PostDelayedTask(
183 FROM_HERE, 183 FROM_HERE,
184 base::Bind(&ChildGLImpl::Draw, base::Unretained(this)), 184 base::Bind(&ChildGLImpl::Draw, base::Unretained(this)),
185 base::TimeDelta::FromMilliseconds(50)); 185 base::TimeDelta::FromMilliseconds(50));
186 } 186 }
187 187
188 } // namespace examples 188 } // namespace examples
189 } // namespace mojo 189 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/examples/surfaces_app/BUILD.gn ('k') | mojo/examples/surfaces_app/child_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698