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

Unified Diff: ppapi/cpp/private/video_frame_private.cc

Issue 14192054: Rename PPAPI Video Stream APIs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Straighten out naming confusion, improve comments. Created 7 years, 8 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
« no previous file with comments | « ppapi/cpp/private/video_frame_private.h ('k') | ppapi/cpp/private/video_source_private.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/private/video_frame_private.cc
diff --git a/ppapi/cpp/video_frame.cc b/ppapi/cpp/private/video_frame_private.cc
similarity index 60%
rename from ppapi/cpp/video_frame.cc
rename to ppapi/cpp/private/video_frame_private.cc
index 5092c5a332275397255df640ca97c70b9bc4a69e..9976647d5b3abac4c563234ebeaaf17f2775348d 100644
--- a/ppapi/cpp/video_frame.cc
+++ b/ppapi/cpp/private/video_frame_private.cc
@@ -2,39 +2,41 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ppapi/cpp/video_frame.h"
+#include "ppapi/cpp/private/video_frame_private.h"
namespace pp {
-// VideoFrame ------------------------------------------------------------------
-
-VideoFrame::VideoFrame()
+VideoFrame_Private::VideoFrame_Private()
: video_frame_() {
video_frame_.image_data = image_data_.pp_resource();
}
-VideoFrame::VideoFrame(const ImageData& image_data, PP_TimeTicks timestamp)
+VideoFrame_Private::VideoFrame_Private(const ImageData& image_data,
+ PP_TimeTicks timestamp)
: image_data_(image_data), video_frame_() {
video_frame_.timestamp = timestamp;
video_frame_.image_data = image_data_.pp_resource();
}
-VideoFrame::VideoFrame(PassRef, const PP_VideoFrame& pp_video_frame)
+VideoFrame_Private::VideoFrame_Private(
+ PassRef,
+ const PP_VideoFrame_Private& pp_video_frame)
: video_frame_(pp_video_frame) {
// Take over the image_data resource in the frame.
image_data_ = ImageData(PASS_REF, video_frame_.image_data);
}
-VideoFrame::VideoFrame(const VideoFrame& other)
+VideoFrame_Private::VideoFrame_Private(const VideoFrame_Private& other)
: video_frame_() {
set_image_data(other.image_data());
set_timestamp(other.timestamp());
}
-VideoFrame::~VideoFrame() {
+VideoFrame_Private::~VideoFrame_Private() {
}
-VideoFrame& VideoFrame::operator=(const VideoFrame& other) {
+VideoFrame_Private& VideoFrame_Private::operator=(
+ const VideoFrame_Private& other) {
if (this == &other)
return *this;
« no previous file with comments | « ppapi/cpp/private/video_frame_private.h ('k') | ppapi/cpp/private/video_source_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698