| Index: cc/test/fake_graphics_context.h
|
| diff --git a/cc/test/fake_graphics_context.h b/cc/test/fake_graphics_context.h
|
| index 638cbb270ce9b24689d5095baf174ade4f4d1a13..a592bf0462722ba0a51694c5f2c110b5955a2241 100644
|
| --- a/cc/test/fake_graphics_context.h
|
| +++ b/cc/test/fake_graphics_context.h
|
| @@ -1,3 +1,22 @@
|
| // 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.
|
| +
|
| +#ifndef FakeCCGraphicsContext_h
|
| +#define FakeCCGraphicsContext_h
|
| +
|
| +#include "CCGraphicsContext.h"
|
| +#include "CompositorFakeWebGraphicsContext3D.h"
|
| +#include "FakeWebCompositorOutputSurface.h"
|
| +#include <public/WebCompositorOutputSurface.h>
|
| +
|
| +namespace WebKit {
|
| +
|
| +static inline scoped_ptr<cc::CCGraphicsContext> createFakeCCGraphicsContext()
|
| +{
|
| + return FakeWebCompositorOutputSurface::create(CompositorFakeWebGraphicsContext3D::create(WebGraphicsContext3D::Attributes())).PassAs<cc::CCGraphicsContext>();
|
| +}
|
| +
|
| +} // namespace WebKit
|
| +
|
| +#endif // FakeCCGraphicsContext_h
|
|
|