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

Side by Side Diff: examples/bitmap_uploader/bitmap_uploader.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 | « examples/bitmap_uploader/bitmap_uploader.h ('k') | examples/browser/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 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/bitmap_uploader/bitmap_uploader.h" 5 #include "examples/bitmap_uploader/bitmap_uploader.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 // GL_GLEXT_PROTOTYPES 9 #endif // GL_GLEXT_PROTOTYPES
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 "mojo/public/cpp/application/connect.h" 16 #include "mojo/public/cpp/application/connect.h"
17 #include "mojo/public/interfaces/application/shell.mojom.h" 17 #include "mojo/public/interfaces/application/shell.mojom.h"
18 #include "mojo/services/geometry/public/cpp/geometry_util.h" 18 #include "mojo/services/geometry/cpp/geometry_util.h"
19 #include "mojo/services/surfaces/public/cpp/surfaces_utils.h" 19 #include "mojo/services/surfaces/public/cpp/surfaces_utils.h"
20 #include "mojo/services/view_manager/public/cpp/lib/view_manager_client_impl.h" 20 #include "mojo/services/view_manager/public/cpp/lib/view_manager_client_impl.h"
21 #include "ui/gfx/geometry/rect.h" 21 #include "ui/gfx/geometry/rect.h"
22 22
23 #define TRANSPARENT_COLOR 0x00000000 23 #define TRANSPARENT_COLOR 0x00000000
24 24
25 namespace mojo { 25 namespace mojo {
26 26
27 namespace { 27 namespace {
28 void LostContext(void*) { 28 void LostContext(void*) {
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 0); 267 0);
268 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); 268 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
269 return texture; 269 return texture;
270 } 270 }
271 271
272 uint32_t BitmapUploader::TextureFormat() { 272 uint32_t BitmapUploader::TextureFormat() {
273 return format_ == BGRA ? GL_BGRA_EXT : GL_RGBA; 273 return format_ == BGRA ? GL_BGRA_EXT : GL_RGBA;
274 } 274 }
275 275
276 } // namespace mojo 276 } // namespace mojo
OLDNEW
« no previous file with comments | « examples/bitmap_uploader/bitmap_uploader.h ('k') | examples/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698