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

Side by Side Diff: content/common/gpu/media/gpu_video_decode_accelerator.h

Issue 24762003: Set the texture to cleared in VideoDecodeAccelerator::PictureReady. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 2 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
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_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ 5 #ifndef CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_
6 #define CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ 6 #define CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 void OnAssignPictureBuffers(const std::vector<int32>& buffer_ids, 74 void OnAssignPictureBuffers(const std::vector<int32>& buffer_ids,
75 const std::vector<uint32>& texture_ids); 75 const std::vector<uint32>& texture_ids);
76 void OnReusePictureBuffer(int32 picture_buffer_id); 76 void OnReusePictureBuffer(int32 picture_buffer_id);
77 void OnFlush(); 77 void OnFlush();
78 void OnReset(); 78 void OnReset();
79 void OnDestroy(); 79 void OnDestroy();
80 80
81 // Called on IO thread when |filter_| has been removed. 81 // Called on IO thread when |filter_| has been removed.
82 void OnFilterRemoved(); 82 void OnFilterRemoved();
83 83
84 // Sets the texture to cleared. Returns false if an error has occurred.
85 bool SetTextureCleared(const media::Picture& picture);
86
84 // Message to Send() when initialization is done. Is only non-NULL during 87 // Message to Send() when initialization is done. Is only non-NULL during
85 // initialization and is owned by the IPC channel underlying the 88 // initialization and is owned by the IPC channel underlying the
86 // GpuCommandBufferStub. 89 // GpuCommandBufferStub.
87 IPC::Message* init_done_msg_; 90 IPC::Message* init_done_msg_;
88 91
89 // Route ID to communicate with the host. 92 // Route ID to communicate with the host.
90 int32 host_route_id_; 93 int32 host_route_id_;
91 94
92 // Unowned pointer to the underlying GpuCommandBufferStub. 95 // Unowned pointer to the underlying GpuCommandBufferStub.
93 GpuCommandBufferStub* stub_; 96 GpuCommandBufferStub* stub_;
(...skipping 16 matching lines...) Expand all
110 113
111 // GPU child message loop. 114 // GPU child message loop.
112 scoped_refptr<base::MessageLoopProxy> child_message_loop_; 115 scoped_refptr<base::MessageLoopProxy> child_message_loop_;
113 116
114 // GPU IO message loop. 117 // GPU IO message loop.
115 scoped_refptr<base::MessageLoopProxy> io_message_loop_; 118 scoped_refptr<base::MessageLoopProxy> io_message_loop_;
116 119
117 // Weak pointers will be invalidated on IO thread. 120 // Weak pointers will be invalidated on IO thread.
118 base::WeakPtrFactory<Client> weak_factory_for_io_; 121 base::WeakPtrFactory<Client> weak_factory_for_io_;
119 122
123 // Picture buffer ID that have not set level cleared.
124 std::vector<int32> buffer_ids_;
125
126 // Texture ID that have not set level cleared.
127 std::vector<uint32> texture_ids_;
Ami GONE FROM CHROMIUM 2013/09/26 16:21:56 comments for this and previous field could be clea
wuchengli 2013/09/30 16:11:21 Done.
128
120 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); 129 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator);
121 }; 130 };
122 131
123 } // namespace content 132 } // namespace content
124 133
125 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ 134 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698