| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |