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

Unified 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, 6 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 side-by-side diff with in-line comments
Download patch
Index: remoting/client/plugin/pepper_desktop_frame.h
diff --git a/remoting/client/plugin/pepper_desktop_frame.h b/remoting/client/plugin/pepper_desktop_frame.h
new file mode 100644
index 0000000000000000000000000000000000000000..7859abf8d53598ad893a750a6b13162f90cf57bc
--- /dev/null
+++ b/remoting/client/plugin/pepper_desktop_frame.h
@@ -0,0 +1,31 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef REMOTING_CLIENT_PLUGIN_PEPPER_IMAGE_BUFFER_H_
Lambros (do not use) 2013/07/03 21:53:26 nit: ..._DESKTOP_FRAME_H_
+#define REMOTING_CLIENT_PLUGIN_PEPPER_IMAGE_BUFFER_H_
+
+#include "third_party/webrtc/modules/desktop_capture/desktop_frame.h"
+
+namespace pp {
+class ImageData;
+} // namespace pp
+
+namespace remoting {
+
+// ImageBuffer that uses PPAPI to allocate space for a raw image.
+class PepperDesktopFrame : public webrtc::DesktopFrame {
Wez 2013/07/03 21:46:39 This class is simple enough that you may as well d
+ public:
+ // 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
+ PepperDesktopFrame(pp::ImageData* buffer);
Lambros (do not use) 2013/07/03 21:53:26 nit: single-arg ctor should be marked explicit.
+
+ // Access to underlying pepper representation.
+ pp::ImageData& data_object();
Lambros (do not use) 2013/07/03 21:53:26 nit: Plain getter for member |foo_| should be name
+
+ private:
+ pp::ImageData* buffer_;
Wez 2013/07/03 21:56:52 This should be pp::ImageData, not pp::ImageData* s
+};
+
+} // namespace remoting
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698