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

Side by Side Diff: ppapi/examples/video_decode/video_decode_dev.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 <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 14 matching lines...) Expand all
25 #include "ppapi/examples/video_decode/testdata.h" 25 #include "ppapi/examples/video_decode/testdata.h"
26 #include "ppapi/lib/gl/include/GLES2/gl2.h" 26 #include "ppapi/lib/gl/include/GLES2/gl2.h"
27 #include "ppapi/lib/gl/include/GLES2/gl2ext.h" 27 #include "ppapi/lib/gl/include/GLES2/gl2ext.h"
28 #include "ppapi/utility/completion_callback_factory.h" 28 #include "ppapi/utility/completion_callback_factory.h"
29 29
30 // Use assert as a poor-man's CHECK, even in non-debug mode. 30 // Use assert as a poor-man's CHECK, even in non-debug mode.
31 // Since <assert.h> redefines assert on every inclusion (it doesn't use 31 // Since <assert.h> redefines assert on every inclusion (it doesn't use
32 // include-guards), make sure this is the last file #include'd in this file. 32 // include-guards), make sure this is the last file #include'd in this file.
33 #undef NDEBUG 33 #undef NDEBUG
34 #include <assert.h> 34 #include <assert.h>
35 #include <stddef.h>
36 #include <stdint.h>
35 37
36 // Assert |context_| isn't holding any GL Errors. Done as a macro instead of a 38 // Assert |context_| isn't holding any GL Errors. Done as a macro instead of a
37 // function to preserve line number information in the failure message. 39 // function to preserve line number information in the failure message.
38 #define assertNoGLError() \ 40 #define assertNoGLError() \
39 assert(!gles2_if_->GetError(context_->pp_resource())); 41 assert(!gles2_if_->GetError(context_->pp_resource()));
40 42
41 namespace { 43 namespace {
42 44
43 struct PictureBufferInfo { 45 struct PictureBufferInfo {
44 PP_PictureBuffer_Dev buffer; 46 PP_PictureBuffer_Dev buffer;
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 gles2_if_->DeleteShader(context_->pp_resource(), shader); 682 gles2_if_->DeleteShader(context_->pp_resource(), shader);
681 } 683 }
682 } // anonymous namespace 684 } // anonymous namespace
683 685
684 namespace pp { 686 namespace pp {
685 // Factory function for your specialization of the Module object. 687 // Factory function for your specialization of the Module object.
686 Module* CreateModule() { 688 Module* CreateModule() {
687 return new VideoDecodeDemoModule(); 689 return new VideoDecodeDemoModule();
688 } 690 }
689 } // namespace pp 691 } // namespace pp
OLDNEW
« no previous file with comments | « ppapi/examples/video_decode/video_decode.cc ('k') | ppapi/examples/video_effects/video_effects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698