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

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

Issue 9381010: Convert resources to take an instance key instead of an Instance*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: USELESS PATCH TITLE Created 8 years, 10 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) 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 <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
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 143
144 VCDemoInstance::VCDemoInstance(PP_Instance instance, pp::Module* module) 144 VCDemoInstance::VCDemoInstance(PP_Instance instance, pp::Module* module)
145 : pp::Instance(instance), 145 : pp::Instance(instance),
146 pp::Graphics3DClient(this), 146 pp::Graphics3DClient(this),
147 pp::VideoCaptureClient_Dev(this), 147 pp::VideoCaptureClient_Dev(this),
148 is_painting_(false), 148 is_painting_(false),
149 needs_paint_(false), 149 needs_paint_(false),
150 texture_y_(0), 150 texture_y_(0),
151 texture_u_(0), 151 texture_u_(0),
152 texture_v_(0), 152 texture_v_(0),
153 video_capture_(*this), 153 video_capture_(this),
154 callback_factory_(this), 154 callback_factory_(this),
155 context_(NULL) { 155 context_(NULL) {
156 gles2_if_ = static_cast<const struct PPB_OpenGLES2*>( 156 gles2_if_ = static_cast<const struct PPB_OpenGLES2*>(
157 module->GetBrowserInterface(PPB_OPENGLES2_INTERFACE)); 157 module->GetBrowserInterface(PPB_OPENGLES2_INTERFACE));
158 assert(gles2_if_); 158 assert(gles2_if_);
159 159
160 capture_info_.width = 320; 160 capture_info_.width = 320;
161 capture_info_.height = 240; 161 capture_info_.height = 240;
162 capture_info_.frames_per_second = 30; 162 capture_info_.frames_per_second = 30;
163 } 163 }
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 } 435 }
436 436
437 } // anonymous namespace 437 } // anonymous namespace
438 438
439 namespace pp { 439 namespace pp {
440 // Factory function for your specialization of the Module object. 440 // Factory function for your specialization of the Module object.
441 Module* CreateModule() { 441 Module* CreateModule() {
442 return new VCDemoModule(); 442 return new VCDemoModule();
443 } 443 }
444 } // namespace pp 444 } // namespace pp
OLDNEW
« no previous file with comments | « ppapi/example/example.cc ('k') | ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_net_address_private_rpc_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698