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

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

Issue 12518026: cc: Add layer-based pixel tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months 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
« no previous file with comments | « cc/test/layer_tree_test_common.cc ('k') | cc/test/pixel_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2013 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 #include "base/file_util.h"
6 #include "testing/gtest/include/gtest/gtest.h"
7 #include "ui/gfx/size.h"
8
9 #ifndef CC_TEST_PIXEL_TEST_H_
10 #define CC_TEST_PIXEL_TEST_H_
11
12 namespace cc {
13 class GLRenderer;
14 class OutputSurface;
15 class ResourceProvider;
16
17 class PixelTest : public testing::Test {
18 protected:
19 PixelTest();
20 virtual ~PixelTest();
21
22 virtual void SetUp() OVERRIDE;
23
24 bool PixelsMatchReference(const base::FilePath& ref_file);
25
26 gfx::Size device_viewport_size_;
27 scoped_ptr<OutputSurface> output_surface_;
28 scoped_ptr<ResourceProvider> resource_provider_;
29 class PixelTestRendererClient;
30 scoped_ptr<PixelTestRendererClient> fake_client_;
31 scoped_ptr<GLRenderer> renderer_;
32 };
33
34 } // namespace cc
35
36 #endif // CC_TEST_PIXEL_TEST_H_
OLDNEW
« no previous file with comments | « cc/test/layer_tree_test_common.cc ('k') | cc/test/pixel_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698