// 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 CC_TEST_PIXEL_TEST_GRAPHICS_CONTEXT_H_ #define CC_TEST_PIXEL_TEST_GRAPHICS_CONTEXT_H_ #include "base/memory/scoped_ptr.h" #include "cc/output_surface.h" namespace cc { class PixelTestOutputSurface : public OutputSurface { public: static scoped_ptr create() { return make_scoped_ptr(new PixelTestOutputSurface); } virtual ~PixelTestOutputSurface(); // OutputSurface overrides. virtual bool BindToClient(OutputSurfaceClient*) OVERRIDE; virtual const struct OutputSurface::Capabilities& Capabilities() const OVERRIDE; virtual WebKit::WebGraphicsContext3D* Context3D() const OVERRIDE; virtual SoftwareOutputDevice* SoftwareDevice() const OVERRIDE; virtual void SendFrameToParentCompositor(const CompositorFrame&) OVERRIDE {} private: PixelTestOutputSurface(); scoped_ptr context_; }; } // namespace cc #endif // CC_TEST_PIXEL_TEST_GRAPHICS_CONTEXT_H_