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

Unified Diff: cc/test/layer_tree_test.cc

Issue 812543002: Update from https://crrev.com/308331 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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/test/layer_tree_test.h ('k') | cc/test/render_pass_test_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/layer_tree_test.cc
diff --git a/cc/test/layer_tree_test.cc b/cc/test/layer_tree_test.cc
index d6411ecdef251d0dfbcef17cf7cd529bc1ff7d0c..e5a5687d4a01580964408f9ebdd13cbccb815d3a 100644
--- a/cc/test/layer_tree_test.cc
+++ b/cc/test/layer_tree_test.cc
@@ -377,8 +377,8 @@ class LayerTreeHostClientForTesting : public LayerTreeHostClient,
top_controls_delta);
}
- void RequestNewOutputSurface(bool fallback) override {
- test_hooks_->RequestNewOutputSurface(fallback);
+ void RequestNewOutputSurface() override {
+ test_hooks_->RequestNewOutputSurface();
}
void DidInitializeOutputSurface() override {
@@ -391,6 +391,7 @@ class LayerTreeHostClientForTesting : public LayerTreeHostClient,
void DidFailToInitializeOutputSurface() override {
test_hooks_->DidFailToInitializeOutputSurface();
+ RequestNewOutputSurface();
}
void WillCommit() override { test_hooks_->WillCommit(); }
@@ -785,17 +786,14 @@ void LayerTreeTest::RunTestWithImplSidePainting() {
RunTest(true, false, true);
}
-void LayerTreeTest::RequestNewOutputSurface(bool fallback) {
- layer_tree_host_->SetOutputSurface(CreateOutputSurface(fallback));
+void LayerTreeTest::RequestNewOutputSurface() {
+ layer_tree_host_->SetOutputSurface(CreateOutputSurface());
}
-scoped_ptr<OutputSurface> LayerTreeTest::CreateOutputSurface(bool fallback) {
- scoped_ptr<FakeOutputSurface> output_surface =
- CreateFakeOutputSurface(fallback);
- if (output_surface) {
- DCHECK_EQ(delegating_renderer_,
- output_surface->capabilities().delegated_rendering);
- }
+scoped_ptr<OutputSurface> LayerTreeTest::CreateOutputSurface() {
+ scoped_ptr<FakeOutputSurface> output_surface = CreateFakeOutputSurface();
+ DCHECK_EQ(delegating_renderer_,
+ output_surface->capabilities().delegated_rendering);
output_surface_ = output_surface.get();
if (settings_.use_external_begin_frame_source &&
@@ -806,8 +804,7 @@ scoped_ptr<OutputSurface> LayerTreeTest::CreateOutputSurface(bool fallback) {
return output_surface.Pass();
}
-scoped_ptr<FakeOutputSurface> LayerTreeTest::CreateFakeOutputSurface(
- bool fallback) {
+scoped_ptr<FakeOutputSurface> LayerTreeTest::CreateFakeOutputSurface() {
if (delegating_renderer_)
return FakeOutputSurface::CreateDelegating3d();
else
« no previous file with comments | « cc/test/layer_tree_test.h ('k') | cc/test/render_pass_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698