diff options
author | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-07 08:52:03 +0000 |
---|---|---|
committer | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-07 08:52:03 +0000 |
commit | 1b901a3348e02376b2cd95f52cf86cc0787c63c6 (patch) | |
tree | e1b3fed2484988ebf7a7302b5fe89792215f418f /cc/test/pixel_test_output_surface.h | |
parent | 82a5c3c0c0bc28dd0fa1ff1a8dab7c6c383b3c49 (diff) | |
download | chromium_src-1b901a3348e02376b2cd95f52cf86cc0787c63c6.zip chromium_src-1b901a3348e02376b2cd95f52cf86cc0787c63c6.tar.gz chromium_src-1b901a3348e02376b2cd95f52cf86cc0787c63c6.tar.bz2 |
Basic pixel tests for cc
BUG=
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171544
Review URL: https://chromiumcodereview.appspot.com/11412289
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171735 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/pixel_test_output_surface.h')
-rw-r--r-- | cc/test/pixel_test_output_surface.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/cc/test/pixel_test_output_surface.h b/cc/test/pixel_test_output_surface.h new file mode 100644 index 0000000..f59e63c --- /dev/null +++ b/cc/test/pixel_test_output_surface.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/output_surface.h" + +namespace cc { + +class PixelTestOutputSurface : public OutputSurface { + public: + static scoped_ptr<PixelTestOutputSurface> create() { + return make_scoped_ptr(new PixelTestOutputSurface); + } + + virtual ~PixelTestOutputSurface(); + + // OutputSurface 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: + PixelTestOutputSurface(); + + scoped_ptr<WebKit::WebGraphicsContext3D> context_; +}; + +} // namespace cc + + +#endif // CC_TEST_PIXEL_TEST_GRAPHICS_CONTEXT_H_ |