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

Unified Diff: media/gpu/rendering_helper.h

Issue 1882373004: Migrate content/common/gpu/media code to media/gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix prefix to content references in content_gpu.gypi Created 4 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
Index: media/gpu/rendering_helper.h
diff --git a/content/common/gpu/media/rendering_helper.h b/media/gpu/rendering_helper.h
similarity index 96%
rename from content/common/gpu/media/rendering_helper.h
rename to media/gpu/rendering_helper.h
index 6a43b3940566add3bb02cbf95f5311ffc6c58f92..60208972ebbbb2a1e59b2ac2cb647d12581af656 100644
--- a/content/common/gpu/media/rendering_helper.h
+++ b/media/gpu/rendering_helper.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_COMMON_GPU_MEDIA_RENDERING_HELPER_H_
-#define CONTENT_COMMON_GPU_MEDIA_RENDERING_HELPER_H_
+#ifndef MEDIA_GPU_RENDERING_HELPER_H_
+#define MEDIA_GPU_RENDERING_HELPER_H_
#include <stddef.h>
#include <stdint.h>
@@ -31,7 +31,7 @@ namespace ui {
class DisplayConfigurator;
}
-namespace content {
+namespace media {
class VideoFrameTexture : public base::RefCounted<VideoFrameTexture> {
public:
@@ -85,7 +85,6 @@ struct RenderingHelperParams {
// (except for ctor/dtor) ensure they're being run on a single thread.
class RenderingHelper {
public:
-
RenderingHelper();
~RenderingHelper();
@@ -160,7 +159,7 @@ class RenderingHelper {
int frames_to_drop;
// The video frames pending for rendering.
- std::queue<scoped_refptr<VideoFrameTexture> > pending_frames;
+ std::queue<scoped_refptr<VideoFrameTexture>> pending_frames;
RenderedVideo();
RenderedVideo(const RenderedVideo& other);
@@ -224,6 +223,6 @@ class RenderingHelper {
DISALLOW_COPY_AND_ASSIGN(RenderingHelper);
};
-} // namespace content
+} // namespace media
-#endif // CONTENT_COMMON_GPU_MEDIA_RENDERING_HELPER_H_
+#endif // MEDIA_GPU_RENDERING_HELPER_H_

Powered by Google App Engine
This is Rietveld 408576698