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

Side by Side Diff: content/common/gpu/media/video_decode_accelerator_unittest.cc

Issue 12210030: Linux/ChromeOS Chromium style checker cleanup, content/ edition. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 10 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
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 // The bulk of this file is support code; sorry about that. Here's an overview 5 // The bulk of this file is support code; sorry about that. Here's an overview
6 // to hopefully help readers of this code: 6 // to hopefully help readers of this code:
7 // - RenderingHelper is charged with interacting with X11/{EGL/GLES2,GLX/GL} or 7 // - RenderingHelper is charged with interacting with X11/{EGL/GLES2,GLX/GL} or
8 // Win/EGL. 8 // Win/EGL.
9 // - ClientState is an enum for the state of the decode client used by the test. 9 // - ClientState is an enum for the state of the decode client used by the test.
10 // - ClientStateNotification is a barrier abstraction that allows the test code 10 // - ClientStateNotification is a barrier abstraction that allows the test code
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 int frame_width, 211 int frame_width,
212 int frame_height, 212 int frame_height,
213 int profile); 213 int profile);
214 virtual ~GLRenderingVDAClient(); 214 virtual ~GLRenderingVDAClient();
215 void CreateDecoder(); 215 void CreateDecoder();
216 216
217 // VideoDecodeAccelerator::Client implementation. 217 // VideoDecodeAccelerator::Client implementation.
218 // The heart of the Client. 218 // The heart of the Client.
219 virtual void ProvidePictureBuffers(uint32 requested_num_of_buffers, 219 virtual void ProvidePictureBuffers(uint32 requested_num_of_buffers,
220 const gfx::Size& dimensions, 220 const gfx::Size& dimensions,
221 uint32 texture_target); 221 uint32 texture_target) OVERRIDE;
222 virtual void DismissPictureBuffer(int32 picture_buffer_id); 222 virtual void DismissPictureBuffer(int32 picture_buffer_id) OVERRIDE;
223 virtual void PictureReady(const media::Picture& picture); 223 virtual void PictureReady(const media::Picture& picture) OVERRIDE;
224 // Simple state changes. 224 // Simple state changes.
225 virtual void NotifyInitializeDone(); 225 virtual void NotifyInitializeDone() OVERRIDE;
226 virtual void NotifyEndOfBitstreamBuffer(int32 bitstream_buffer_id); 226 virtual void NotifyEndOfBitstreamBuffer(int32 bitstream_buffer_id) OVERRIDE;
227 virtual void NotifyFlushDone(); 227 virtual void NotifyFlushDone() OVERRIDE;
228 virtual void NotifyResetDone(); 228 virtual void NotifyResetDone() OVERRIDE;
229 virtual void NotifyError(VideoDecodeAccelerator::Error error); 229 virtual void NotifyError(VideoDecodeAccelerator::Error error) OVERRIDE;
230 230
231 // Simple getters for inspecting the state of the Client. 231 // Simple getters for inspecting the state of the Client.
232 int num_done_bitstream_buffers() { return num_done_bitstream_buffers_; } 232 int num_done_bitstream_buffers() { return num_done_bitstream_buffers_; }
233 int num_skipped_fragments() { return num_skipped_fragments_; } 233 int num_skipped_fragments() { return num_skipped_fragments_; }
234 int num_queued_fragments() { return num_queued_fragments_; } 234 int num_queued_fragments() { return num_queued_fragments_; }
235 int num_decoded_frames() { return num_decoded_frames_; } 235 int num_decoded_frames() { return num_decoded_frames_; }
236 double frames_per_second(); 236 double frames_per_second();
237 bool decoder_deleted() { return !decoder_.get(); } 237 bool decoder_deleted() { return !decoder_.get(); }
238 238
239 private: 239 private:
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 content::ExynosVideoDecodeAccelerator::PreSandboxInitialization(); 960 content::ExynosVideoDecodeAccelerator::PreSandboxInitialization();
961 else 961 else
962 content::OmxVideoDecodeAccelerator::PreSandboxInitialization(); 962 content::OmxVideoDecodeAccelerator::PreSandboxInitialization();
963 #elif defined(ARCH_CPU_X86_FAMILY) 963 #elif defined(ARCH_CPU_X86_FAMILY)
964 content::VaapiVideoDecodeAccelerator::PreSandboxInitialization(); 964 content::VaapiVideoDecodeAccelerator::PreSandboxInitialization();
965 #endif // ARCH_CPU_ARMEL 965 #endif // ARCH_CPU_ARMEL
966 #endif // OS_CHROMEOS 966 #endif // OS_CHROMEOS
967 967
968 return RUN_ALL_TESTS(); 968 return RUN_ALL_TESTS();
969 } 969 }
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_memory_manager_unittest.cc ('k') | content/common/resource_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698