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

Unified Diff: content/common/gpu/media/gpu_video_decode_accelerator.h

Issue 7292010: Delete GpuVideoService and move GpuVideoDecodeAccelerator ownership to stubs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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: content/common/gpu/media/gpu_video_decode_accelerator.h
diff --git a/content/common/gpu/media/gpu_video_decode_accelerator.h b/content/common/gpu/media/gpu_video_decode_accelerator.h
index 96954ffd1b2629f27c9f6473cba98ae7c89a8b9c..51ef162225ae44e4794671e25071043be35b0a86 100644
--- a/content/common/gpu/media/gpu_video_decode_accelerator.h
+++ b/content/common/gpu/media/gpu_video_decode_accelerator.h
@@ -20,8 +20,7 @@ class ReadWriteTokens;
class GpuCommandBufferStub;
class GpuVideoDecodeAccelerator
- : public base::RefCountedThreadSafe<GpuVideoDecodeAccelerator>,
- public IPC::Channel::Listener,
+ : public IPC::Channel::Listener,
public IPC::Message::Sender,
public media::VideoDecodeAccelerator::Client {
public:
@@ -53,14 +52,6 @@ class GpuVideoDecodeAccelerator
// Function to delegate sending to actual sender.
virtual bool Send(IPC::Message* message);
- void set_video_decode_accelerator(
- media::VideoDecodeAccelerator* accelerator) {
- DCHECK(!video_decode_accelerator_.get());
- video_decode_accelerator_.reset(accelerator);
- }
-
- void AssignGLESBuffers(const std::vector<media::GLESBuffer>& buffers);
-
// Callback to be fired when the underlying stub receives a new token.
void OnSetToken(int32 token);
@@ -81,7 +72,7 @@ class GpuVideoDecodeAccelerator
void OnDecode(
const gpu::ReadWriteTokens& /* tokens */,
base::SharedMemoryHandle handle, int32 id, int32 size);
- void OnAssignTextures(
+ void OnAssignGLESBuffers(
const gpu::ReadWriteTokens& /* tokens */,
const std::vector<int32>& buffer_ids,
const std::vector<uint32>& texture_ids,

Powered by Google App Engine
This is Rietveld 408576698