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

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

Issue 1750213002: Fix Android black frames from MSE config changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 9 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
« 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // process. Should not be called directly. 64 // process. Should not be called directly.
65 void OnCdmAttached(bool success); 65 void OnCdmAttached(bool success);
66 void OnBitstreamBufferProcessed(int32_t bitstream_buffer_id); 66 void OnBitstreamBufferProcessed(int32_t bitstream_buffer_id);
67 void OnProvidePictureBuffer(uint32_t num_requested_buffers, 67 void OnProvidePictureBuffer(uint32_t num_requested_buffers,
68 const gfx::Size& dimensions, 68 const gfx::Size& dimensions,
69 uint32_t texture_target); 69 uint32_t texture_target);
70 void OnDismissPictureBuffer(int32_t picture_buffer_id); 70 void OnDismissPictureBuffer(int32_t picture_buffer_id);
71 void OnPictureReady(int32_t picture_buffer_id, 71 void OnPictureReady(int32_t picture_buffer_id,
72 int32_t bitstream_buffer_id, 72 int32_t bitstream_buffer_id,
73 const gfx::Rect& visible_rect, 73 const gfx::Rect& visible_rect,
74 bool allow_overlay); 74 bool allow_overlay,
75 bool size_changed);
75 void OnFlushDone(); 76 void OnFlushDone();
76 void OnResetDone(); 77 void OnResetDone();
77 void OnNotifyError(uint32_t error); 78 void OnNotifyError(uint32_t error);
78 79
79 // Unowned reference to the GpuChannelHost to send IPC messages to the GPU 80 // Unowned reference to the GpuChannelHost to send IPC messages to the GPU
80 // process. |channel_| outlives |impl_|, so the reference is always valid as 81 // process. |channel_| outlives |impl_|, so the reference is always valid as
81 // long as it is not NULL. 82 // long as it is not NULL.
82 GpuChannelHost* channel_; 83 GpuChannelHost* channel_;
83 84
84 // Route ID for the associated decoder in the GPU process. 85 // Route ID for the associated decoder in the GPU process.
(...skipping 12 matching lines...) Expand all
97 98
98 // WeakPtr factory for posting tasks back to itself. 99 // WeakPtr factory for posting tasks back to itself.
99 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_; 100 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_;
100 101
101 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); 102 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost);
102 }; 103 };
103 104
104 } // namespace content 105 } // namespace content
105 106
106 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 107 #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