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

Side by Side Diff: ui/compositor/test/context_factories_for_test.h

Issue 2563783002: ui + mus: Split ContextFactory into ContextFactory(Client) and ContextFactoryPrivate (Closed)
Patch Set: Restore mash Created 4 years 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 | « ui/compositor/layer_unittest.cc ('k') | ui/compositor/test/context_factories_for_test.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 namespace ui { 5 namespace ui {
6 6
7 class ContextFactory; 7 class ContextFactory;
8 class ContextFactoryPrivate;
8 9
9 // Set up the compositor ContextFactory for a test environment. Unit tests 10 // Set up the compositor ContextFactory for a test environment. Unit tests
10 // that do not have a full content environment need to call this before 11 // that do not have a full content environment need to call this before
11 // initializing the Compositor. 12 // initializing the Compositor.
12 // Some tests expect pixel output, and they should pass true for 13 // Some tests expect pixel output, and they should pass true for
13 // |enable_pixel_output|. Most unit tests should pass false. Once this has been 14 // |enable_pixel_output|. Most unit tests should pass false. Once this has been
14 // called, the caller must call TerminateContextFactoryForTests() to clean up. 15 // called, the caller must call TerminateContextFactoryForTests() to clean up.
15 // TODO(sky): this should return a scoped_ptr and then nuke 16 // TODO(sky): this should return a scoped_ptr and then nuke
16 // TerminateContextFactoryForTests(). 17 // TerminateContextFactoryForTests().
17 ui::ContextFactory* InitializeContextFactoryForTests(bool enable_pixel_output); 18 void InitializeContextFactoryForTests(
19 bool enable_pixel_output,
20 ui::ContextFactory** context_factory,
21 ui::ContextFactoryPrivate** context_factory_private);
22
18 void TerminateContextFactoryForTests(); 23 void TerminateContextFactoryForTests();
19 24
20 } // namespace ui 25 } // namespace ui
OLDNEW
« no previous file with comments | « ui/compositor/layer_unittest.cc ('k') | ui/compositor/test/context_factories_for_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698