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

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

Issue 14925009: Run all LayerTreeHost tests with a delegating renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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
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 "cc/test/layer_tree_pixel_test.h" 5 #include "cc/test/layer_tree_pixel_test.h"
6 6
7 #include "base/path_service.h" 7 #include "base/path_service.h"
8 #include "cc/test/paths.h" 8 #include "cc/test/paths.h"
9 #include "cc/test/pixel_comparator.h" 9 #include "cc/test/pixel_comparator.h"
10 #include "cc/test/pixel_test_utils.h" 10 #include "cc/test/pixel_test_utils.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 layer->AddChild(border_right); 108 layer->AddChild(border_right);
109 layer->AddChild(border_bottom); 109 layer->AddChild(border_bottom);
110 return layer; 110 return layer;
111 } 111 }
112 112
113 void LayerTreePixelTest::RunPixelTest( 113 void LayerTreePixelTest::RunPixelTest(
114 scoped_refptr<Layer> content_root, 114 scoped_refptr<Layer> content_root,
115 base::FilePath file_name) { 115 base::FilePath file_name) {
116 content_root_ = content_root; 116 content_root_ = content_root;
117 ref_file_ = file_name; 117 ref_file_ = file_name;
118 RunTest(true); 118 RunTest(true, false);
119 } 119 }
120 120
121 void LayerTreePixelTest::SetupTree() { 121 void LayerTreePixelTest::SetupTree() {
122 scoped_refptr<Layer> root = Layer::Create(); 122 scoped_refptr<Layer> root = Layer::Create();
123 root->SetBounds(content_root_->bounds()); 123 root->SetBounds(content_root_->bounds());
124 root->AddChild(content_root_); 124 root->AddChild(content_root_);
125 layer_tree_host()->SetRootLayer(root); 125 layer_tree_host()->SetRootLayer(root);
126 LayerTreeTest::SetupTree(); 126 LayerTreeTest::SetupTree();
127 } 127 }
128 128
129 } // namespace cc 129 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698