blob: a84925bb94aa2cc9f0db7a44ee1c018f5222f7e4 [file] [log] [blame]
// Copyright 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
namespace gfx {
class Rect;
namespace ui {
class Compositor;
class ContextFactory;
class ContextFactoryPrivate;
class TestCompositorHost {
virtual ~TestCompositorHost() {}
// Creates a new TestCompositorHost. The caller owns the returned value.
static TestCompositorHost* Create(
const gfx::Rect& bounds,
ui::ContextFactory* context_factory,
ui::ContextFactoryPrivate* context_factory_private);
// Shows the TestCompositorHost. Must only be called once.
virtual void Show() = 0;
virtual Compositor* GetCompositor() = 0;
} // namespace ui