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

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

Issue 2193293004: cc: Make LayerTreeTests use a DelegatingRenderer and Display. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: display-layertreetest: withperftestsfix 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/test/fake_output_surface.h ('k') | cc/test/layer_tree_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 #ifndef CC_TEST_LAYER_TREE_PIXEL_TEST_H_ 5 #ifndef CC_TEST_LAYER_TREE_PIXEL_TEST_H_
6 #define CC_TEST_LAYER_TREE_PIXEL_TEST_H_ 6 #define CC_TEST_LAYER_TREE_PIXEL_TEST_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 23 matching lines...) Expand all
34 enum PixelTestType { 34 enum PixelTestType {
35 PIXEL_TEST_GL, 35 PIXEL_TEST_GL,
36 PIXEL_TEST_SOFTWARE, 36 PIXEL_TEST_SOFTWARE,
37 }; 37 };
38 38
39 protected: 39 protected:
40 LayerTreePixelTest(); 40 LayerTreePixelTest();
41 ~LayerTreePixelTest() override; 41 ~LayerTreePixelTest() override;
42 42
43 // LayerTreeTest overrides. 43 // LayerTreeTest overrides.
44 void InitializeSettings(LayerTreeSettings* settings) override; 44 std::unique_ptr<TestDelegatingOutputSurface> CreateDelegatingOutputSurface(
45 std::unique_ptr<OutputSurface> CreateOutputSurface() override; 45 scoped_refptr<ContextProvider> compositor_context_provider,
46 scoped_refptr<ContextProvider> worker_context_provider) override;
47 std::unique_ptr<OutputSurface> CreateDisplayOutputSurface(
48 scoped_refptr<ContextProvider> compositor_context_provider) override;
46 49
47 virtual std::unique_ptr<CopyOutputRequest> CreateCopyOutputRequest(); 50 virtual std::unique_ptr<CopyOutputRequest> CreateCopyOutputRequest();
48 51
49 void ReadbackResult(std::unique_ptr<CopyOutputResult> result); 52 void ReadbackResult(std::unique_ptr<CopyOutputResult> result);
50 53
51 void BeginTest() override; 54 void BeginTest() override;
52 void SetupTree() override; 55 void SetupTree() override;
53 void AfterTest() override; 56 void AfterTest() override;
54 void EndTest() override; 57 void EndTest() override;
55 58
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 base::FilePath ref_file_; 105 base::FilePath ref_file_;
103 std::unique_ptr<SkBitmap> result_bitmap_; 106 std::unique_ptr<SkBitmap> result_bitmap_;
104 std::vector<scoped_refptr<TextureLayer>> texture_layers_; 107 std::vector<scoped_refptr<TextureLayer>> texture_layers_;
105 int pending_texture_mailbox_callbacks_; 108 int pending_texture_mailbox_callbacks_;
106 gfx::Size enlarge_texture_amount_; 109 gfx::Size enlarge_texture_amount_;
107 }; 110 };
108 111
109 } // namespace cc 112 } // namespace cc
110 113
111 #endif // CC_TEST_LAYER_TREE_PIXEL_TEST_H_ 114 #endif // CC_TEST_LAYER_TREE_PIXEL_TEST_H_
OLDNEW
« no previous file with comments | « cc/test/fake_output_surface.h ('k') | cc/test/layer_tree_pixel_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698