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

Side by Side Diff: examples/surfaces_app/child_gl_impl.cc

Issue 792813002: Restructure public side of surfaces service. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years 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 | « examples/surfaces_app/child_gl_impl.h ('k') | examples/surfaces_app/child_impl.h » ('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 "examples/surfaces_app/child_gl_impl.h" 5 #include "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 "examples/surfaces_app/surfaces_util.h" 17 #include "examples/surfaces_app/surfaces_util.h"
18 #include "gpu/GLES2/gl2chromium.h" 18 #include "gpu/GLES2/gl2chromium.h"
19 #include "gpu/GLES2/gl2extchromium.h" 19 #include "gpu/GLES2/gl2extchromium.h"
20 #include "gpu/command_buffer/common/mailbox.h" 20 #include "gpu/command_buffer/common/mailbox.h"
21 #include "gpu/command_buffer/common/mailbox_holder.h" 21 #include "gpu/command_buffer/common/mailbox_holder.h"
22 #include "mojo/converters/geometry/geometry_type_converters.h" 22 #include "mojo/converters/geometry/geometry_type_converters.h"
23 #include "mojo/converters/surfaces/surfaces_type_converters.h" 23 #include "mojo/converters/surfaces/surfaces_type_converters.h"
24 #include "mojo/public/cpp/application/application_connection.h" 24 #include "mojo/public/cpp/application/application_connection.h"
25 #include "mojo/public/cpp/environment/environment.h" 25 #include "mojo/public/cpp/environment/environment.h"
26 #include "mojo/services/public/interfaces/surfaces/surface_id.mojom.h" 26 #include "mojo/services/surfaces/public/interfaces/surface_id.mojom.h"
27 #include "mojo/services/public/interfaces/surfaces/surfaces.mojom.h" 27 #include "mojo/services/surfaces/public/interfaces/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
36 using cc::RenderPass; 36 using cc::RenderPass;
37 using cc::RenderPassId; 37 using cc::RenderPassId;
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 mojo::Closure()); 185 mojo::Closure());
186 186
187 base::MessageLoop::current()->PostDelayedTask( 187 base::MessageLoop::current()->PostDelayedTask(
188 FROM_HERE, 188 FROM_HERE,
189 base::Bind(&ChildGLImpl::Draw, base::Unretained(this)), 189 base::Bind(&ChildGLImpl::Draw, base::Unretained(this)),
190 base::TimeDelta::FromMilliseconds(50)); 190 base::TimeDelta::FromMilliseconds(50));
191 } 191 }
192 192
193 } // namespace examples 193 } // namespace examples
194 } // namespace mojo 194 } // namespace mojo
OLDNEW
« no previous file with comments | « examples/surfaces_app/child_gl_impl.h ('k') | examples/surfaces_app/child_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698