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

Side by Side Diff: cc/trees/layer_tree_host_perftest.cc

Issue 565043002: cc: Remove the opaque rect return-parameter from ContentLayerClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: contentlayerclientopaque: build Created 6 years, 3 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 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 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/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 24 matching lines...) Expand all
35 class LayerTreeHostPerfTest : public LayerTreeTest { 35 class LayerTreeHostPerfTest : public LayerTreeTest {
36 public: 36 public:
37 LayerTreeHostPerfTest() 37 LayerTreeHostPerfTest()
38 : draw_timer_(kWarmupRuns, 38 : draw_timer_(kWarmupRuns,
39 base::TimeDelta::FromMilliseconds(kTimeLimitMillis), 39 base::TimeDelta::FromMilliseconds(kTimeLimitMillis),
40 kTimeCheckInterval), 40 kTimeCheckInterval),
41 commit_timer_(0, base::TimeDelta(), 1), 41 commit_timer_(0, base::TimeDelta(), 1),
42 full_damage_each_frame_(false), 42 full_damage_each_frame_(false),
43 begin_frame_driven_drawing_(false), 43 begin_frame_driven_drawing_(false),
44 measure_commit_cost_(false) { 44 measure_commit_cost_(false) {
45 fake_content_layer_client_.set_paint_all_opaque(true);
46 } 45 }
47 46
48 virtual void InitializeSettings(LayerTreeSettings* settings) OVERRIDE { 47 virtual void InitializeSettings(LayerTreeSettings* settings) OVERRIDE {
49 settings->throttle_frame_production = false; 48 settings->throttle_frame_production = false;
50 } 49 }
51 50
52 virtual void BeginTest() OVERRIDE { 51 virtual void BeginTest() OVERRIDE {
53 BuildTree(); 52 BuildTree();
54 PostSetNeedsCommitToMainThread(); 53 PostSetNeedsCommitToMainThread();
55 } 54 }
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 TEST_F(LayerTreeHostPerfTestJsonReader, HeavyPageThreadedImplSide) { 328 TEST_F(LayerTreeHostPerfTestJsonReader, HeavyPageThreadedImplSide) {
330 begin_frame_driven_drawing_ = true; 329 begin_frame_driven_drawing_ = true;
331 measure_commit_cost_ = true; 330 measure_commit_cost_ = true;
332 SetTestName("heavy_page"); 331 SetTestName("heavy_page");
333 ReadTestFile("heavy_layer_tree"); 332 ReadTestFile("heavy_layer_tree");
334 RunTestWithImplSidePainting(); 333 RunTestWithImplSidePainting();
335 } 334 }
336 335
337 } // namespace 336 } // namespace
338 } // namespace cc 337 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_common_unittest.cc ('k') | cc/trees/layer_tree_host_pixeltest_masks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698