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

Side by Side Diff: content/common/gpu/client/gpu_video_decode_accelerator_host.h

Issue 10392141: Plumb texture target to VideoDecodeAccelerator::Client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win build Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/common/gpu/client/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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 5 #ifndef CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_
6 #define CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 6 #define CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 30 matching lines...) Expand all
41 virtual void Reset() OVERRIDE; 41 virtual void Reset() OVERRIDE;
42 virtual void Destroy() OVERRIDE; 42 virtual void Destroy() OVERRIDE;
43 43
44 protected: 44 protected:
45 virtual ~GpuVideoDecodeAcceleratorHost(); 45 virtual ~GpuVideoDecodeAcceleratorHost();
46 46
47 private: 47 private:
48 void Send(IPC::Message* message); 48 void Send(IPC::Message* message);
49 49
50 void OnBitstreamBufferProcessed(int32 bitstream_buffer_id); 50 void OnBitstreamBufferProcessed(int32 bitstream_buffer_id);
51 void OnProvidePictureBuffer( 51 void OnProvidePictureBuffer(uint32 num_requested_buffers,
52 uint32 num_requested_buffers, const gfx::Size& buffer_size); 52 const gfx::Size& buffer_size,
53 uint32 texture_target);
53 void OnDismissPictureBuffer(int32 picture_buffer_id); 54 void OnDismissPictureBuffer(int32 picture_buffer_id);
54 void OnPictureReady(int32 picture_buffer_id, int32 bitstream_buffer_id); 55 void OnPictureReady(int32 picture_buffer_id, int32 bitstream_buffer_id);
55 void OnFlushDone(); 56 void OnFlushDone();
56 void OnResetDone(); 57 void OnResetDone();
57 void OnErrorNotification(uint32 error); 58 void OnErrorNotification(uint32 error);
58 59
59 // Sends IPC messages to the Gpu process. 60 // Sends IPC messages to the Gpu process.
60 GpuChannelHost* channel_; 61 GpuChannelHost* channel_;
61 62
62 // Route ID for the associated decoder in the GPU process. 63 // Route ID for the associated decoder in the GPU process.
63 // TODO(fischman): storing route_id's for GPU process entities in the client 64 // TODO(fischman): storing route_id's for GPU process entities in the client
64 // process is vulnerable to GPU process crashing & being respawned, and 65 // process is vulnerable to GPU process crashing & being respawned, and
65 // attempting to use an outdated or reused route id. 66 // attempting to use an outdated or reused route id.
66 int32 decoder_route_id_; 67 int32 decoder_route_id_;
67 68
68 // Reference to the client that will receive callbacks from the decoder. 69 // Reference to the client that will receive callbacks from the decoder.
69 media::VideoDecodeAccelerator::Client* client_; 70 media::VideoDecodeAccelerator::Client* client_;
70 71
71 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); 72 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost);
72 }; 73 };
73 74
74 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 75 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/client/gpu_video_decode_accelerator_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698