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

Side by Side Diff: cc/layers/layer_perftest.cc

Issue 619843002: cc: Make separate interface for BeginFrame ipc from OutputSurface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 | « android_webview/browser/hardware_renderer.cc ('k') | cc/layers/layer_unittest.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 "cc/layers/layer.h" 5 #include "cc/layers/layer.h"
6 6
7 #include "cc/debug/lap_timer.h" 7 #include "cc/debug/lap_timer.h"
8 #include "cc/resources/layer_painter.h" 8 #include "cc/resources/layer_painter.h"
9 #include "cc/test/fake_impl_proxy.h" 9 #include "cc/test/fake_impl_proxy.h"
10 #include "cc/test/fake_layer_tree_host.h" 10 #include "cc/test/fake_layer_tree_host.h"
(...skipping 22 matching lines...) Expand all
33 : host_impl_(&proxy_, &shared_bitmap_manager_), 33 : host_impl_(&proxy_, &shared_bitmap_manager_),
34 fake_client_(FakeLayerTreeHostClient::DIRECT_3D), 34 fake_client_(FakeLayerTreeHostClient::DIRECT_3D),
35 timer_(kWarmupRuns, 35 timer_(kWarmupRuns,
36 base::TimeDelta::FromMilliseconds(kTimeLimitMillis), 36 base::TimeDelta::FromMilliseconds(kTimeLimitMillis),
37 kTimeCheckInterval) {} 37 kTimeCheckInterval) {}
38 38
39 protected: 39 protected:
40 virtual void SetUp() override { 40 virtual void SetUp() override {
41 layer_tree_host_ = FakeLayerTreeHost::Create(&fake_client_); 41 layer_tree_host_ = FakeLayerTreeHost::Create(&fake_client_);
42 layer_tree_host_->InitializeSingleThreaded( 42 layer_tree_host_->InitializeSingleThreaded(
43 &fake_client_, base::MessageLoopProxy::current()); 43 &fake_client_, base::MessageLoopProxy::current(), nullptr);
44 } 44 }
45 45
46 virtual void TearDown() override { 46 virtual void TearDown() override {
47 layer_tree_host_->SetRootLayer(nullptr); 47 layer_tree_host_->SetRootLayer(nullptr);
48 layer_tree_host_ = nullptr; 48 layer_tree_host_ = nullptr;
49 } 49 }
50 50
51 FakeImplProxy proxy_; 51 FakeImplProxy proxy_;
52 TestSharedBitmapManager shared_bitmap_manager_; 52 TestSharedBitmapManager shared_bitmap_manager_;
53 FakeLayerTreeHostImpl host_impl_; 53 FakeLayerTreeHostImpl host_impl_;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 "", 112 "",
113 "props_didnt_change", 113 "props_didnt_change",
114 timer_.LapsPerSecond(), 114 timer_.LapsPerSecond(),
115 "runs/s", 115 "runs/s",
116 true); 116 true);
117 } 117 }
118 118
119 119
120 } // namespace 120 } // namespace
121 } // namespace cc 121 } // namespace cc
OLDNEW
« no previous file with comments | « android_webview/browser/hardware_renderer.cc ('k') | cc/layers/layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698