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

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

Issue 2034583002: Initialize the Display's renderer when the Display is initialized. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@displaytest
Patch Set: displayinit: . Created 4 years, 4 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
« no previous file with comments | « cc/surfaces/display.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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/files/file_util.h" 5 #include "base/files/file_util.h"
6 #include "cc/output/gl_renderer.h" 6 #include "cc/output/gl_renderer.h"
7 #include "cc/output/software_renderer.h" 7 #include "cc/output/software_renderer.h"
8 #include "cc/quads/render_pass.h" 8 #include "cc/quads/render_pass.h"
9 #include "cc/test/pixel_comparator.h" 9 #include "cc/test/pixel_comparator.h"
10 #include "cc/trees/layer_tree_settings.h" 10 #include "cc/trees/layer_tree_settings.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 #include "ui/gfx/geometry/size.h" 12 #include "ui/gfx/geometry/size.h"
13 #include "ui/gl/gl_implementation.h" 13 #include "ui/gl/gl_implementation.h"
14 14
15 #ifndef CC_TEST_PIXEL_TEST_H_ 15 #ifndef CC_TEST_PIXEL_TEST_H_
16 #define CC_TEST_PIXEL_TEST_H_ 16 #define CC_TEST_PIXEL_TEST_H_
17 17
18 namespace cc { 18 namespace cc {
19 class CopyOutputResult; 19 class CopyOutputResult;
20 class DirectRenderer; 20 class DirectRenderer;
21 class FakeOutputSurfaceClient; 21 class FakeOutputSurfaceClient;
22 class OutputSurface; 22 class OutputSurface;
23 class ResourceProvider; 23 class ResourceProvider;
24 class SoftwareRenderer; 24 class SoftwareRenderer;
25 class TestGpuMemoryBufferManager; 25 class TestGpuMemoryBufferManager;
26 class TestSharedBitmapManager; 26 class TestSharedBitmapManager;
27 27
28 class PixelTest : public testing::Test, RendererClient { 28 class PixelTest : public testing::Test, public RendererClient {
29 protected: 29 protected:
30 PixelTest(); 30 PixelTest();
31 ~PixelTest() override; 31 ~PixelTest() override;
32 32
33 bool RunPixelTest(RenderPassList* pass_list, 33 bool RunPixelTest(RenderPassList* pass_list,
34 const base::FilePath& ref_file, 34 const base::FilePath& ref_file,
35 const PixelComparator& comparator); 35 const PixelComparator& comparator);
36 36
37 bool RunPixelTestWithReadbackTarget( 37 bool RunPixelTestWithReadbackTarget(
38 RenderPassList* pass_list, 38 RenderPassList* pass_list,
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 ForceExpandedViewport(gfx::Size(50, 50)); 166 ForceExpandedViewport(gfx::Size(50, 50));
167 ForceViewportOffset(gfx::Vector2d(10, 20)); 167 ForceViewportOffset(gfx::Vector2d(10, 20));
168 } 168 }
169 169
170 typedef RendererPixelTest<GLRenderer> GLRendererPixelTest; 170 typedef RendererPixelTest<GLRenderer> GLRendererPixelTest;
171 typedef RendererPixelTest<SoftwareRenderer> SoftwareRendererPixelTest; 171 typedef RendererPixelTest<SoftwareRenderer> SoftwareRendererPixelTest;
172 172
173 } // namespace cc 173 } // namespace cc
174 174
175 #endif // CC_TEST_PIXEL_TEST_H_ 175 #endif // CC_TEST_PIXEL_TEST_H_
OLDNEW
« no previous file with comments | « cc/surfaces/display.cc ('k') | cc/test/pixel_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698