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

Side by Side Diff: remoting/host/chromeos/skia_bitmap_desktop_frame.h

Issue 1547473005: Switch to standard integer types in remoting/host/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
OLDNEW
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 <stdint.h>
6
7 #include "base/macros.h"
5 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
6 #include "third_party/skia/include/core/SkBitmap.h" 9 #include "third_party/skia/include/core/SkBitmap.h"
7 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" 10 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h"
8 11
9 namespace remoting { 12 namespace remoting {
10 13
11 // DesktopFrame implementation used by screen capture on ChromeOS. 14 // DesktopFrame implementation used by screen capture on ChromeOS.
12 // Frame data is stored in a SkBitmap. 15 // Frame data is stored in a SkBitmap.
13 class SkiaBitmapDesktopFrame : public webrtc::DesktopFrame { 16 class SkiaBitmapDesktopFrame : public webrtc::DesktopFrame {
14 public: 17 public:
15 static SkiaBitmapDesktopFrame* Create(scoped_ptr<SkBitmap> bitmap); 18 static SkiaBitmapDesktopFrame* Create(scoped_ptr<SkBitmap> bitmap);
16 ~SkiaBitmapDesktopFrame() override; 19 ~SkiaBitmapDesktopFrame() override;
17 20
18 private: 21 private:
19 SkiaBitmapDesktopFrame(webrtc::DesktopSize size, 22 SkiaBitmapDesktopFrame(webrtc::DesktopSize size,
20 int stride, 23 int stride,
21 uint8_t* data, 24 uint8_t* data,
22 scoped_ptr<SkBitmap> bitmap); 25 scoped_ptr<SkBitmap> bitmap);
23 26
24 scoped_ptr<SkBitmap> bitmap_; 27 scoped_ptr<SkBitmap> bitmap_;
25 28
26 DISALLOW_COPY_AND_ASSIGN(SkiaBitmapDesktopFrame); 29 DISALLOW_COPY_AND_ASSIGN(SkiaBitmapDesktopFrame);
27 }; 30 };
28 31
29 } // namespace remoting 32 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/chromeos/point_transformer.h ('k') | remoting/host/chromeos/skia_bitmap_desktop_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698