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

Side by Side Diff: content/renderer/gpu/gpu_video_decode_accelerator_host.h

Issue 7292010: Delete GpuVideoService and move GpuVideoDecodeAccelerator ownership to stubs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase ToT Created 9 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/content_common.gypi ('k') | content/renderer/gpu/gpu_video_decode_accelerator_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_GPU_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 5 #ifndef CONTENT_RENDERER_GPU_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_
6 #define CONTENT_RENDERER_GPU_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 6 #define CONTENT_RENDERER_GPU_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 private: 59 private:
60 // Insert a token into the command buffer and return a token-pair suitable for 60 // Insert a token into the command buffer and return a token-pair suitable for
61 // sending over IPC for synchronization with the command buffer. 61 // sending over IPC for synchronization with the command buffer.
62 gpu::ReadWriteTokens SyncTokens(); 62 gpu::ReadWriteTokens SyncTokens();
63 63
64 void OnBitstreamBufferProcessed(int32 bitstream_buffer_id); 64 void OnBitstreamBufferProcessed(int32 bitstream_buffer_id);
65 void OnProvidePictureBuffer( 65 void OnProvidePictureBuffer(
66 uint32 num_requested_buffers, const gfx::Size& buffer_size, int32 mem_type); 66 uint32 num_requested_buffers, const gfx::Size& buffer_size, int32 mem_type);
67 void OnDismissPictureBuffer(int32 picture_buffer_id); 67 void OnDismissPictureBuffer(int32 picture_buffer_id);
68 void OnCreateDone(int32 decoder_id);
69 void OnInitializeDone(); 68 void OnInitializeDone();
70 void OnPictureReady(int32 picture_buffer_id, 69 void OnPictureReady(int32 picture_buffer_id,
71 int32 bitstream_buffer_id, 70 int32 bitstream_buffer_id,
72 const gfx::Size& visible_size, 71 const gfx::Size& visible_size,
73 const gfx::Size& decoded_size); 72 const gfx::Size& decoded_size);
74 void OnFlushDone(); 73 void OnFlushDone();
75 void OnAbortDone(); 74 void OnAbortDone();
76 void OnEndOfStream(); 75 void OnEndOfStream();
77 void OnErrorNotification(uint32 error); 76 void OnErrorNotification(uint32 error);
78 77
(...skipping 17 matching lines...) Expand all
96 int32 command_buffer_route_id_; 95 int32 command_buffer_route_id_;
97 96
98 // Helper for the command buffer associated with the context the GPU Video 97 // Helper for the command buffer associated with the context the GPU Video
99 // Decoder uses. 98 // Decoder uses.
100 // TODO(fischman): in the out-of-process case, this won't work 99 // TODO(fischman): in the out-of-process case, this won't work
101 // (context3d->gles2_impl() will be NULL), and will have to be replaced with a 100 // (context3d->gles2_impl() will be NULL), and will have to be replaced with a
102 // dedicated message such as WaitForToken, which will serialize subsequent 101 // dedicated message such as WaitForToken, which will serialize subsequent
103 // message processing behind it. 102 // message processing behind it.
104 gpu::CommandBufferHelper* cmd_buffer_helper_; 103 gpu::CommandBufferHelper* cmd_buffer_helper_;
105 104
106 // Temporarily store configs here in between Create and Initialize phase.
107 std::vector<uint32> configs_;
108
109 // Reference to the client that will receive callbacks from the decoder. 105 // Reference to the client that will receive callbacks from the decoder.
110 media::VideoDecodeAccelerator::Client* client_; 106 media::VideoDecodeAccelerator::Client* client_;
111 107
112 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); 108 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost);
113 }; 109 };
114 110
115 #endif // CONTENT_RENDERER_GPU_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 111 #endif // CONTENT_RENDERER_GPU_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_
OLDNEW
« no previous file with comments | « content/content_common.gypi ('k') | content/renderer/gpu/gpu_video_decode_accelerator_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698