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

Side by Side Diff: apps/moterm/gl_helper.cc

Issue 1398973004: Move //mojo/services/X/public/... to //mojo/services/X/... (part 2). (Closed) Base URL: https://github.com/domokit/mojo.git@no_public_1
Patch Set: add missing copyright notices Created 5 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 | « apps/moterm/gl_helper.h ('k') | apps/moterm/gl_helper_test_app.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 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 "apps/moterm/gl_helper.h" 5 #include "apps/moterm/gl_helper.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 <GLES2/gl2.h> 11 #include <GLES2/gl2.h>
12 #include <GLES2/gl2extmojo.h> 12 #include <GLES2/gl2extmojo.h>
13 #include <MGL/mgl.h> 13 #include <MGL/mgl.h>
14 14
15 #include "base/bind.h" 15 #include "base/bind.h"
16 #include "base/location.h" 16 #include "base/location.h"
17 #include "base/message_loop/message_loop.h" 17 #include "base/message_loop/message_loop.h"
18 #include "base/task_runner.h" 18 #include "base/task_runner.h"
19 #include "mojo/public/cpp/application/connect.h" 19 #include "mojo/public/cpp/application/connect.h"
20 #include "mojo/public/interfaces/application/shell.mojom.h" 20 #include "mojo/public/interfaces/application/shell.mojom.h"
21 #include "mojo/services/geometry/public/cpp/geometry_util.h" 21 #include "mojo/services/geometry/cpp/geometry_util.h"
22 #include "mojo/services/surfaces/public/cpp/surfaces_utils.h" 22 #include "mojo/services/surfaces/public/cpp/surfaces_utils.h"
23 23
24 // Maximum number of (live) textures to keep around. 24 // Maximum number of (live) textures to keep around.
25 const size_t kMaxTextures = 10; 25 const size_t kMaxTextures = 10;
26 26
27 GlHelper::GlHelper(Client* client, 27 GlHelper::GlHelper(Client* client,
28 mojo::Shell* shell, 28 mojo::Shell* shell,
29 GLint texture_format, 29 GLint texture_format,
30 bool flipped, 30 bool flipped,
31 const mojo::Size& initial_size) 31 const mojo::Size& initial_size)
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 textures_pending_return_.clear(); 318 textures_pending_return_.clear();
319 319
320 // We're in a callback, so we can just call the client directly. 320 // We're in a callback, so we can just call the client directly.
321 client_->OnContextLost(); 321 client_->OnContextLost();
322 } 322 }
323 323
324 void GlHelper::SubmitFrameCallback(uint32_t frame_id) { 324 void GlHelper::SubmitFrameCallback(uint32_t frame_id) {
325 // We're in a callback, so we can just call the client directly. 325 // We're in a callback, so we can just call the client directly.
326 client_->OnFrameDisplayed(frame_id); 326 client_->OnFrameDisplayed(frame_id);
327 } 327 }
OLDNEW
« no previous file with comments | « apps/moterm/gl_helper.h ('k') | apps/moterm/gl_helper_test_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698