OLD | NEW |
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 "webkit/plugins/ppapi/ppb_video_capture_impl.h" | 5 #include "webkit/plugins/ppapi/ppb_video_capture_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 // Maximum number of buffers to actually allocate. | 31 // Maximum number of buffers to actually allocate. |
32 const uint32_t kMaxBuffers = 20; | 32 const uint32_t kMaxBuffers = 20; |
33 | 33 |
34 } // namespace | 34 } // namespace |
35 | 35 |
36 namespace webkit { | 36 namespace webkit { |
37 namespace ppapi { | 37 namespace ppapi { |
38 | 38 |
39 PPB_VideoCapture_Impl::PPB_VideoCapture_Impl(PP_Instance instance) | 39 PPB_VideoCapture_Impl::PPB_VideoCapture_Impl(PP_Instance instance) |
40 : Resource(instance), | 40 : Resource(::ppapi::OBJECT_IS_IMPL, instance), |
41 buffer_count_hint_(0), | 41 buffer_count_hint_(0), |
42 ppp_videocapture_(NULL), | 42 ppp_videocapture_(NULL), |
43 status_(PP_VIDEO_CAPTURE_STATUS_STOPPED), | 43 status_(PP_VIDEO_CAPTURE_STATUS_STOPPED), |
44 is_dead_(false) { | 44 is_dead_(false) { |
45 } | 45 } |
46 | 46 |
47 PPB_VideoCapture_Impl::~PPB_VideoCapture_Impl() { | 47 PPB_VideoCapture_Impl::~PPB_VideoCapture_Impl() { |
48 } | 48 } |
49 | 49 |
50 bool PPB_VideoCapture_Impl::Init() { | 50 bool PPB_VideoCapture_Impl::Init() { |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 : in_use(false), | 305 : in_use(false), |
306 data(NULL), | 306 data(NULL), |
307 buffer() { | 307 buffer() { |
308 } | 308 } |
309 | 309 |
310 PPB_VideoCapture_Impl::BufferInfo::~BufferInfo() { | 310 PPB_VideoCapture_Impl::BufferInfo::~BufferInfo() { |
311 } | 311 } |
312 | 312 |
313 } // namespace ppapi | 313 } // namespace ppapi |
314 } // namespace webkit | 314 } // namespace webkit |
OLD | NEW |