Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: cc/test/pixel_test_graphics_context.h

Issue 11412289: Basic pixel tests for cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moves png comparison code to cc/test, does actual comparison Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #ifndef CC_TEST_PIXEL_TEST_GRAPHICS_CONTEXT_H_
6 #define CC_TEST_PIXEL_TEST_GRAPHICS_CONTEXT_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "cc/graphics_context.h"
10
11 namespace cc {
12
13 class PixelTestGraphicsContext : public GraphicsContext {
14 public:
15 static scoped_ptr<PixelTestGraphicsContext> create() {
16 return make_scoped_ptr(new PixelTestGraphicsContext);
17 }
18
19 virtual ~PixelTestGraphicsContext();
20
21 // GraphicsContext overrides.
22 virtual bool bindToClient(WebKit::WebCompositorOutputSurfaceClient*) OVERRIDE;
23 virtual const WebKit::WebCompositorOutputSurface::Capabilities& capabilities() const OVERRIDE;
24 virtual WebKit::WebGraphicsContext3D* context3D() const OVERRIDE;
25 virtual void sendFrameToParentCompositor(
26 const WebKit::WebCompositorFrame&) OVERRIDE { }
27
28 private:
29 PixelTestGraphicsContext();
30
31 scoped_ptr<WebKit::WebGraphicsContext3D> m_context;
enne (OOO) 2012/12/03 21:40:29 m_context => context_
32 };
33
34 } // namespace cc
35
36
37 #endif // CC_TEST_PIXEL_TEST_GRAPHICS_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698