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

Unified Diff: cc/test/fake_layer_tree_host.h

Issue 1511743004: cc: Fix recording of GPU rasterization histogram for renderer compositor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add ForTesting to SetTaskRunnerProvider. Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/scrollbar_layer_unittest.cc ('k') | cc/test/fake_layer_tree_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_layer_tree_host.h
diff --git a/cc/test/fake_layer_tree_host.h b/cc/test/fake_layer_tree_host.h
index 5e6bb1026ffdeb1bb95b35d7ca64daa907b24d75..b0b9cdeb920c40481827c3f7ef2b12c75eeb22b3 100644
--- a/cc/test/fake_layer_tree_host.h
+++ b/cc/test/fake_layer_tree_host.h
@@ -26,6 +26,11 @@ class FakeLayerTreeHost : public LayerTreeHost {
FakeLayerTreeHostClient* client,
TestTaskGraphRunner* task_graph_runner,
const LayerTreeSettings& settings);
+ static scoped_ptr<FakeLayerTreeHost> Create(
+ FakeLayerTreeHostClient* client,
+ TestTaskGraphRunner* task_graph_runner,
+ const LayerTreeSettings& settings,
+ CompositorMode mode);
~FakeLayerTreeHost() override;
@@ -47,6 +52,8 @@ class FakeLayerTreeHost : public LayerTreeHost {
using LayerTreeHost::SetOutputSurfaceLostForTesting;
using LayerTreeHost::InitializeSingleThreaded;
using LayerTreeHost::InitializeForTesting;
+ using LayerTreeHost::RecordGpuRasterizationHistogram;
+
void UpdateLayers() { LayerTreeHost::UpdateLayers(); }
MicroBenchmarkController* GetMicroBenchmarkController() {
@@ -62,7 +69,8 @@ class FakeLayerTreeHost : public LayerTreeHost {
protected:
FakeLayerTreeHost(FakeLayerTreeHostClient* client,
- LayerTreeHost::InitParams* params);
+ LayerTreeHost::InitParams* params,
+ CompositorMode mode);
private:
FakeImplTaskRunnerProvider task_runner_provider_;
« no previous file with comments | « cc/layers/scrollbar_layer_unittest.cc ('k') | cc/test/fake_layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698