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

Unified Diff: media/gpu/vp8_decoder.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 several more bot-identified build issues 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/vp8_decoder.h
diff --git a/content/common/gpu/media/vp8_decoder.h b/media/gpu/vp8_decoder.h
similarity index 88%
rename from content/common/gpu/media/vp8_decoder.h
rename to media/gpu/vp8_decoder.h
index 50b3d1c47fc70e25d1df457f25626bb02754175e..32ca48b32717bef20e27f0fbe02070d83ff9adef 100644
--- a/content/common/gpu/media/vp8_decoder.h
+++ b/media/gpu/vp8_decoder.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_VP8_DECODER_H_
-#define CONTENT_COMMON_GPU_MEDIA_VP8_DECODER_H_
+#ifndef MEDIA_GPU_VP8_DECODER_H_
+#define MEDIA_GPU_VP8_DECODER_H_
#include <stddef.h>
#include <stdint.h>
@@ -12,11 +12,11 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "content/common/gpu/media/accelerated_video_decoder.h"
-#include "content/common/gpu/media/vp8_picture.h"
#include "media/filters/vp8_parser.h"
+#include "media/gpu/accelerated_video_decoder.h"
+#include "media/gpu/vp8_picture.h"
-namespace content {
+namespace media {
// Clients of this class are expected to pass raw VP8 stream and are expected
// to provide an implementation of VP8Accelerator for offloading final steps
@@ -24,9 +24,9 @@ namespace content {
//
// This class must be created, called and destroyed on a single thread, and
// does nothing internally on any other thread.
-class CONTENT_EXPORT VP8Decoder : public AcceleratedVideoDecoder {
+class MEDIA_GPU_EXPORT VP8Decoder : public AcceleratedVideoDecoder {
public:
- class CONTENT_EXPORT VP8Accelerator {
+ class MEDIA_GPU_EXPORT VP8Accelerator {
public:
VP8Accelerator();
virtual ~VP8Accelerator();
@@ -66,7 +66,7 @@ class CONTENT_EXPORT VP8Decoder : public AcceleratedVideoDecoder {
VP8Decoder(VP8Accelerator* accelerator);
~VP8Decoder() override;
- // content::AcceleratedVideoDecoder implementation.
+ // media::AcceleratedVideoDecoder implementation.
bool Flush() override WARN_UNUSED_RESULT;
void Reset() override;
void SetStream(const uint8_t* ptr, size_t size) override;
@@ -107,6 +107,6 @@ class CONTENT_EXPORT VP8Decoder : public AcceleratedVideoDecoder {
DISALLOW_COPY_AND_ASSIGN(VP8Decoder);
};
-} // namespace content
+} // namespace media
-#endif // CONTENT_COMMON_GPU_MEDIA_VP8_DECODER_H_
+#endif // MEDIA_GPU_VP8_DECODER_H_

Powered by Google App Engine
This is Rietveld 408576698