OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <stddef.h> |
| 6 |
5 #include "base/logging.h" | 7 #include "base/logging.h" |
6 #include "remoting/host/chromeos/skia_bitmap_desktop_frame.h" | 8 #include "remoting/host/chromeos/skia_bitmap_desktop_frame.h" |
7 | 9 |
8 namespace remoting { | 10 namespace remoting { |
9 | 11 |
10 // static | 12 // static |
11 SkiaBitmapDesktopFrame* SkiaBitmapDesktopFrame::Create( | 13 SkiaBitmapDesktopFrame* SkiaBitmapDesktopFrame::Create( |
12 scoped_ptr<SkBitmap> bitmap) { | 14 scoped_ptr<SkBitmap> bitmap) { |
13 | 15 |
14 webrtc::DesktopSize size(bitmap->width(), bitmap->height()); | 16 webrtc::DesktopSize size(bitmap->width(), bitmap->height()); |
(...skipping 15 matching lines...) Expand all Loading... |
30 int stride, | 32 int stride, |
31 uint8_t* data, | 33 uint8_t* data, |
32 scoped_ptr<SkBitmap> bitmap) | 34 scoped_ptr<SkBitmap> bitmap) |
33 : DesktopFrame(size, stride, data, nullptr), bitmap_(bitmap.Pass()) { | 35 : DesktopFrame(size, stride, data, nullptr), bitmap_(bitmap.Pass()) { |
34 } | 36 } |
35 | 37 |
36 SkiaBitmapDesktopFrame::~SkiaBitmapDesktopFrame() { | 38 SkiaBitmapDesktopFrame::~SkiaBitmapDesktopFrame() { |
37 } | 39 } |
38 | 40 |
39 } // namespace remoting | 41 } // namespace remoting |
OLD | NEW |