| Index: remoting/client/plugin/pepper_desktop_frame.cc
|
| diff --git a/remoting/client/plugin/pepper_desktop_frame.cc b/remoting/client/plugin/pepper_desktop_frame.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..60ac99823fb7a5712706b27eb3595d903787cb27
|
| --- /dev/null
|
| +++ b/remoting/client/plugin/pepper_desktop_frame.cc
|
| @@ -0,0 +1,25 @@
|
| +// 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.
|
| +
|
| +#include "remoting/client/plugin/pepper_desktop_frame.h"
|
| +
|
| +#include "ppapi/cpp/image_data.h"
|
| +
|
| +using pp::ImageData;
|
| +using webrtc::DesktopSize;
|
| +
|
| +namespace remoting {
|
| +
|
| +PepperDesktopFrame::PepperDesktopFrame(ImageData* buffer)
|
| + : DesktopFrame(DesktopSize(buffer->size().width(), buffer->size().height()),
|
| + buffer->stride(),
|
| + reinterpret_cast<uint8_t*>(buffer->data()),
|
| + NULL),
|
| + buffer_(buffer) {}
|
| +
|
| +ImageData& PepperDesktopFrame::data_object() {
|
| + return *buffer_;
|
| +}
|
| +
|
| +} // namespace remoting
|
|
|