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

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

Issue 2768343002: Change namespace from ui to gfx for NativePixmap related code (Closed)
Patch Set: Addressed sadrul's remark Created 3 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 | « media/gpu/vaapi_wrapper.cc ('k') | services/ui/service.h » ('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 // 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
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
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 }
OLDNEW
« no previous file with comments | « media/gpu/vaapi_wrapper.cc ('k') | services/ui/service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698