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

Side by Side Diff: ppapi/examples/gles2/gles2.cc

Issue 1548813002: Switch to standard integer types in ppapi/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 4 years, 12 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <string.h> 5 #include <string.h>
6 6
7 #include <iostream> 7 #include <iostream>
8 #include <sstream> 8 #include <sstream>
9 9
10 #include "ppapi/c/pp_errors.h" 10 #include "ppapi/c/pp_errors.h"
11 #include "ppapi/c/ppb_opengles2.h" 11 #include "ppapi/c/ppb_opengles2.h"
12 #include "ppapi/cpp/core.h" 12 #include "ppapi/cpp/core.h"
13 #include "ppapi/cpp/fullscreen.h" 13 #include "ppapi/cpp/fullscreen.h"
14 #include "ppapi/cpp/graphics_3d.h" 14 #include "ppapi/cpp/graphics_3d.h"
15 #include "ppapi/cpp/graphics_3d_client.h" 15 #include "ppapi/cpp/graphics_3d_client.h"
16 #include "ppapi/cpp/input_event.h" 16 #include "ppapi/cpp/input_event.h"
17 #include "ppapi/cpp/instance.h" 17 #include "ppapi/cpp/instance.h"
18 #include "ppapi/cpp/module.h" 18 #include "ppapi/cpp/module.h"
19 #include "ppapi/cpp/rect.h" 19 #include "ppapi/cpp/rect.h"
20 #include "ppapi/cpp/var.h" 20 #include "ppapi/cpp/var.h"
21 #include "ppapi/lib/gl/include/GLES2/gl2.h" 21 #include "ppapi/lib/gl/include/GLES2/gl2.h"
22 #include "ppapi/utility/completion_callback_factory.h" 22 #include "ppapi/utility/completion_callback_factory.h"
23 23
24 // Use assert as a poor-man's CHECK, even in non-debug mode. 24 // Use assert as a poor-man's CHECK, even in non-debug mode.
25 // Since <assert.h> redefines assert on every inclusion (it doesn't use 25 // Since <assert.h> redefines assert on every inclusion (it doesn't use
26 // include-guards), make sure this is the last file #include'd in this file. 26 // include-guards), make sure this is the last file #include'd in this file.
27 #undef NDEBUG 27 #undef NDEBUG
28 #include <assert.h> 28 #include <assert.h>
29 #include <stdint.h>
29 30
30 // Assert |context_| isn't holding any GL Errors. Done as a macro instead of a 31 // Assert |context_| isn't holding any GL Errors. Done as a macro instead of a
31 // function to preserve line number information in the failure message. 32 // function to preserve line number information in the failure message.
32 #define assertNoGLError() \ 33 #define assertNoGLError() \
33 assert(!gles2_if_->GetError(context_->pp_resource())); 34 assert(!gles2_if_->GetError(context_->pp_resource()));
34 35
35 namespace { 36 namespace {
36 37
37 class GLES2DemoInstance : public pp::Instance, 38 class GLES2DemoInstance : public pp::Instance,
38 public pp::Graphics3DClient { 39 public pp::Graphics3DClient {
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 } 172 }
172 173
173 } // anonymous namespace 174 } // anonymous namespace
174 175
175 namespace pp { 176 namespace pp {
176 // Factory function for your specialization of the Module object. 177 // Factory function for your specialization of the Module object.
177 Module* CreateModule() { 178 Module* CreateModule() {
178 return new GLES2DemoModule(); 179 return new GLES2DemoModule();
179 } 180 }
180 } // namespace pp 181 } // namespace pp
OLDNEW
« no previous file with comments | « ppapi/examples/gamepad/gamepad.cc ('k') | ppapi/examples/gles2_spinning_cube/gles2_spinning_cube.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698