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

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

Issue 9122012: gcl change rev (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <assert.h> 5 #include <assert.h>
6 #include <string.h> 6 #include <string.h>
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
11 #include "ppapi/c/pp_errors.h" 11 #include "ppapi/c/pp_errors.h"
12 #include "ppapi/c/ppb_opengles2.h" 12 #include "ppapi/c/ppb_opengles2.h"
13 #include "ppapi/cpp/dev/buffer_dev.h" 13 #include "ppapi/cpp/dev/buffer_dev.h"
14 #include "ppapi/cpp/dev/video_capture_dev.h" 14 #include "ppapi/cpp/dev/video_capture_dev.h"
15 #include "ppapi/cpp/dev/video_capture_client_dev.h" 15 #include "ppapi/cpp/dev/video_capture_client_dev.h"
16 #include "ppapi/cpp/completion_callback.h" 16 #include "ppapi/cpp/completion_callback.h"
17 #include "ppapi/cpp/graphics_3d_client.h" 17 #include "ppapi/cpp/graphics_3d_client.h"
18 #include "ppapi/cpp/graphics_3d.h" 18 #include "ppapi/cpp/graphics_3d.h"
19 #include "ppapi/cpp/instance.h" 19 #include "ppapi/cpp/instance.h"
20 #include "ppapi/cpp/module.h" 20 #include "ppapi/cpp/module.h"
21 #include "ppapi/cpp/rect.h" 21 #include "ppapi/cpp/rect.h"
22 #include "ppapi/lib/gl/include/GLES2/gl2.h" 22 #include "ppapi/lib/gl/include/GLES2/gl2.h"
23 #include "ppapi/utility/completion_callback_factory.h"
23 24
24 // Assert |context_| isn't holding any GL Errors. Done as a macro instead of a 25 // Assert |context_| isn't holding any GL Errors. Done as a macro instead of a
25 // function to preserve line number information in the failure message. 26 // function to preserve line number information in the failure message.
26 #define assertNoGLError() \ 27 #define assertNoGLError() \
27 assert(!gles2_if_->GetError(context_->pp_resource())); 28 assert(!gles2_if_->GetError(context_->pp_resource()));
28 29
29 namespace { 30 namespace {
30 31
31 // This object is the global object representing this plugin library as long 32 // This object is the global object representing this plugin library as long
32 // as it is loaded. 33 // as it is loaded.
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 } 369 }
369 370
370 } // anonymous namespace 371 } // anonymous namespace
371 372
372 namespace pp { 373 namespace pp {
373 // Factory function for your specialization of the Module object. 374 // Factory function for your specialization of the Module object.
374 Module* CreateModule() { 375 Module* CreateModule() {
375 return new VCDemoModule(); 376 return new VCDemoModule();
376 } 377 }
377 } // namespace pp 378 } // namespace pp
OLDNEW
« no previous file with comments | « ppapi/examples/url_loader/streaming.cc ('k') | ppapi/native_client/src/trusted/plugin/file_downloader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698