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

Side by Side Diff: remoting/client/plugin/pepper_desktop_frame.h

Issue 18233015: Abstract PPAPI's ImageData behind webrtc::DesktopFrame interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplify PepperDesktopFrame implementation Created 7 years, 5 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
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_IMAGE_BUFFER_H_
Lambros (do not use) 2013/07/03 21:53:26 nit: ..._DESKTOP_FRAME_H_
6 #define REMOTING_CLIENT_PLUGIN_PEPPER_IMAGE_BUFFER_H_
7
8 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h"
9
10 namespace pp {
11 class ImageData;
12 } // namespace pp
13
14 namespace remoting {
15
16 // ImageBuffer that uses PPAPI to allocate space for a raw image.
17 class PepperDesktopFrame : public webrtc::DesktopFrame {
Wez 2013/07/03 21:46:39 This class is simple enough that you may as well d
18 public:
19 // Constructor.
Wez 2013/07/03 21:46:39 nit: Please provide a more descriptive comment, e.
Lambros (do not use) 2013/07/03 21:53:26 nit: I think it's better to remove this comment. I
20 PepperDesktopFrame(pp::ImageData* buffer);
Lambros (do not use) 2013/07/03 21:53:26 nit: single-arg ctor should be marked explicit.
21
22 // Access to underlying pepper representation.
23 pp::ImageData& data_object();
Lambros (do not use) 2013/07/03 21:53:26 nit: Plain getter for member |foo_| should be name
24
25 private:
26 pp::ImageData* buffer_;
Wez 2013/07/03 21:56:52 This should be pp::ImageData, not pp::ImageData* s
27 };
28
29 } // namespace remoting
30
31 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698