Chromium Code Reviews| Index: cc/test/pixel_test_graphics_context.h |
| diff --git a/cc/test/pixel_test_graphics_context.h b/cc/test/pixel_test_graphics_context.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..d2fe1187e804a5d0695c14b16f36a0d4a932412a |
| --- /dev/null |
| +++ b/cc/test/pixel_test_graphics_context.h |
| @@ -0,0 +1,37 @@ |
| +// 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/graphics_context.h" |
| + |
| +namespace cc { |
| + |
| +class PixelTestGraphicsContext : public GraphicsContext { |
| + public: |
| + static scoped_ptr<PixelTestGraphicsContext> create() { |
| + return make_scoped_ptr(new PixelTestGraphicsContext); |
| + } |
| + |
| + virtual ~PixelTestGraphicsContext(); |
| + |
| + // GraphicsContext overrides. |
| + virtual bool bindToClient(WebKit::WebCompositorOutputSurfaceClient*) OVERRIDE; |
| + virtual const WebKit::WebCompositorOutputSurface::Capabilities& capabilities() const OVERRIDE; |
| + virtual WebKit::WebGraphicsContext3D* context3D() const OVERRIDE; |
| + virtual void sendFrameToParentCompositor( |
| + const WebKit::WebCompositorFrame&) OVERRIDE { } |
| + |
| + private: |
| + PixelTestGraphicsContext(); |
| + |
| + scoped_ptr<WebKit::WebGraphicsContext3D> m_context; |
|
enne (OOO)
2012/12/03 21:40:29
m_context => context_
|
| +}; |
| + |
| +} // namespace cc |
| + |
| + |
| +#endif // CC_TEST_PIXEL_TEST_GRAPHICS_CONTEXT_H_ |