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

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

Issue 9086003: Revert 116281 - Move paint aggregator and the completion callback factory. (Closed) Base URL: svn://svn.chromium.org/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"
24 23
25 // Assert |context_| isn't holding any GL Errors. Done as a macro instead of a 24 // Assert |context_| isn't holding any GL Errors. Done as a macro instead of a
26 // function to preserve line number information in the failure message. 25 // function to preserve line number information in the failure message.
27 #define assertNoGLError() \ 26 #define assertNoGLError() \
28 assert(!gles2_if_->GetError(context_->pp_resource())); 27 assert(!gles2_if_->GetError(context_->pp_resource()));
29 28
30 namespace { 29 namespace {
31 30
32 // This object is the global object representing this plugin library as long 31 // This object is the global object representing this plugin library as long
33 // as it is loaded. 32 // as it is loaded.
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 } 368 }
370 369
371 } // anonymous namespace 370 } // anonymous namespace
372 371
373 namespace pp { 372 namespace pp {
374 // Factory function for your specialization of the Module object. 373 // Factory function for your specialization of the Module object.
375 Module* CreateModule() { 374 Module* CreateModule() {
376 return new VCDemoModule(); 375 return new VCDemoModule();
377 } 376 }
378 } // namespace pp 377 } // 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