1 // Copyright 2012 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.
5 #ifndef CC_TEST_PIXEL_TEST_GRAPHICS_CONTEXT_H_
6 #define CC_TEST_PIXEL_TEST_GRAPHICS_CONTEXT_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "cc/output_surface.h"
13 class PixelTestOutputSurface
: public OutputSurface
{
15 static scoped_ptr
<PixelTestOutputSurface
> create() {
16 return make_scoped_ptr(new PixelTestOutputSurface
);
19 virtual ~PixelTestOutputSurface();
21 // OutputSurface overrides.
22 virtual bool BindToClient(OutputSurfaceClient
*) OVERRIDE
;
23 virtual const struct OutputSurface::Capabilities
& Capabilities() const
25 virtual WebKit::WebGraphicsContext3D
* Context3D() const OVERRIDE
;
26 virtual SoftwareOutputDevice
* SoftwareDevice() const OVERRIDE
;
27 virtual void SendFrameToParentCompositor(CompositorFrame
*) OVERRIDE
{}
30 PixelTestOutputSurface();
32 scoped_ptr
<WebKit::WebGraphicsContext3D
> context_
;
37 #endif // CC_TEST_PIXEL_TEST_GRAPHICS_CONTEXT_H_