OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ui/gfx/test/gfx_test_utils.h" |
| 6 |
| 7 #if defined(VIEWS_COMPOSITOR) |
| 8 #include "ui/gfx/compositor/compositor.h" |
| 9 #include "ui/gfx/compositor/test_compositor.h" |
| 10 #endif |
| 11 |
| 12 namespace ui { |
| 13 namespace gfx_test_utils { |
| 14 |
| 15 void SetupTestCompositor() { |
| 16 #if defined(VIEWS_COMPOSITOR) |
| 17 // Use a mock compositor that noops draws. |
| 18 ui::Compositor::set_compositor_factory_for_testing( |
| 19 ui::TestCompositor::Create); |
| 20 #endif |
| 21 } |
| 22 |
| 23 } // namespace gfx_test_utils |
| 24 } // namespace ui |
OLD | NEW |