| OLD | NEW |
| 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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 friend class base::RefCounted<TextureRef>; | 331 friend class base::RefCounted<TextureRef>; |
| 332 | 332 |
| 333 TextureRef(uint32_t texture_id, const base::Closure& no_longer_needed_cb) | 333 TextureRef(uint32_t texture_id, const base::Closure& no_longer_needed_cb) |
| 334 : texture_id_(texture_id), no_longer_needed_cb_(no_longer_needed_cb) {} | 334 : texture_id_(texture_id), no_longer_needed_cb_(no_longer_needed_cb) {} |
| 335 | 335 |
| 336 ~TextureRef(); | 336 ~TextureRef(); |
| 337 | 337 |
| 338 uint32_t texture_id_; | 338 uint32_t texture_id_; |
| 339 base::Closure no_longer_needed_cb_; | 339 base::Closure no_longer_needed_cb_; |
| 340 #if defined(USE_OZONE) | 340 #if defined(USE_OZONE) |
| 341 scoped_refptr<ui::NativePixmap> pixmap_; | 341 scoped_refptr<gfx::NativePixmap> pixmap_; |
| 342 #endif | 342 #endif |
| 343 }; | 343 }; |
| 344 | 344 |
| 345 TextureRef::~TextureRef() { | 345 TextureRef::~TextureRef() { |
| 346 base::ResetAndReturn(&no_longer_needed_cb_).Run(); | 346 base::ResetAndReturn(&no_longer_needed_cb_).Run(); |
| 347 } | 347 } |
| 348 | 348 |
| 349 // static | 349 // static |
| 350 scoped_refptr<TextureRef> TextureRef::Create( | 350 scoped_refptr<TextureRef> TextureRef::Create( |
| 351 uint32_t texture_id, | 351 uint32_t texture_id, |
| (...skipping 1563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1915 media::g_thumbnail_output_dir = base::FilePath(it->second.c_str()); | 1915 media::g_thumbnail_output_dir = base::FilePath(it->second.c_str()); |
| 1916 } | 1916 } |
| 1917 } | 1917 } |
| 1918 | 1918 |
| 1919 base::ShadowingAtExitManager at_exit_manager; | 1919 base::ShadowingAtExitManager at_exit_manager; |
| 1920 | 1920 |
| 1921 return base::LaunchUnitTestsSerially( | 1921 return base::LaunchUnitTestsSerially( |
| 1922 argc, argv, | 1922 argc, argv, |
| 1923 base::Bind(&media::VDATestSuite::Run, base::Unretained(&test_suite))); | 1923 base::Bind(&media::VDATestSuite::Run, base::Unretained(&test_suite))); |
| 1924 } | 1924 } |
| OLD | NEW |