| 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 #ifndef REMOTING_HOST_VIDEO_FRAME_H_ | 5 #ifndef REMOTING_CAPTURER_VIDEO_FRAME_H_ |
| 6 #define REMOTING_HOST_VIDEO_FRAME_H_ | 6 #define REMOTING_CAPTURER_VIDEO_FRAME_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "remoting/base/shared_buffer.h" | 11 #include "remoting/capturer/shared_buffer.h" |
| 12 #include "third_party/skia/include/core/SkSize.h" |
| 12 #include "third_party/skia/include/core/SkTypes.h" | 13 #include "third_party/skia/include/core/SkTypes.h" |
| 13 #include "third_party/skia/include/core/SkSize.h" | |
| 14 | 14 |
| 15 namespace remoting { | 15 namespace remoting { |
| 16 | 16 |
| 17 // Represents a video frame. | 17 // Represents a video frame. |
| 18 class VideoFrame { | 18 class VideoFrame { |
| 19 public: | 19 public: |
| 20 virtual ~VideoFrame(); | 20 virtual ~VideoFrame(); |
| 21 | 21 |
| 22 int bytes_per_row() const { return bytes_per_row_; } | 22 int bytes_per_row() const { return bytes_per_row_; } |
| 23 const SkISize& dimensions() const { return dimensions_; } | 23 const SkISize& dimensions() const { return dimensions_; } |
| (...skipping 29 matching lines...) Expand all Loading... |
| 53 uint8* pixels_; | 53 uint8* pixels_; |
| 54 | 54 |
| 55 // Points to an optional shared memory buffer that backs up |pixels_| buffer. | 55 // Points to an optional shared memory buffer that backs up |pixels_| buffer. |
| 56 scoped_refptr<SharedBuffer> shared_buffer_; | 56 scoped_refptr<SharedBuffer> shared_buffer_; |
| 57 | 57 |
| 58 DISALLOW_COPY_AND_ASSIGN(VideoFrame); | 58 DISALLOW_COPY_AND_ASSIGN(VideoFrame); |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace remoting | 61 } // namespace remoting |
| 62 | 62 |
| 63 #endif // REMOTING_HOST_VIDEO_FRAME_H_ | 63 #endif // REMOTING_CAPTURER_VIDEO_FRAME_H_ |
| OLD | NEW |