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

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

Issue 2668873002: cc: Add checker-imaging support to TileManager. (Closed)
Patch Set: Rebase Created 3 years, 10 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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_impl.h" 5 #include "cc/trees/layer_tree_host_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <cmath> 10 #include <cmath>
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 void OnDrawForCompositorFrameSink(bool resourceless_software_draw) override { 166 void OnDrawForCompositorFrameSink(bool resourceless_software_draw) override {
167 std::unique_ptr<LayerTreeHostImpl::FrameData> frame( 167 std::unique_ptr<LayerTreeHostImpl::FrameData> frame(
168 new LayerTreeHostImpl::FrameData); 168 new LayerTreeHostImpl::FrameData);
169 EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(frame.get())); 169 EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(frame.get()));
170 last_on_draw_render_passes_.clear(); 170 last_on_draw_render_passes_.clear();
171 RenderPass::CopyAll(frame->render_passes, &last_on_draw_render_passes_); 171 RenderPass::CopyAll(frame->render_passes, &last_on_draw_render_passes_);
172 host_impl_->DrawLayers(frame.get()); 172 host_impl_->DrawLayers(frame.get());
173 host_impl_->DidDrawAllLayers(*frame); 173 host_impl_->DidDrawAllLayers(*frame);
174 last_on_draw_frame_ = std::move(frame); 174 last_on_draw_frame_ = std::move(frame);
175 } 175 }
176 void NeedsImplSideInvalidation() override {}
176 177
177 void set_reduce_memory_result(bool reduce_memory_result) { 178 void set_reduce_memory_result(bool reduce_memory_result) {
178 reduce_memory_result_ = reduce_memory_result; 179 reduce_memory_result_ = reduce_memory_result;
179 } 180 }
180 181
181 virtual bool CreateHostImpl( 182 virtual bool CreateHostImpl(
182 const LayerTreeSettings& settings, 183 const LayerTreeSettings& settings,
183 std::unique_ptr<CompositorFrameSink> compositor_frame_sink) { 184 std::unique_ptr<CompositorFrameSink> compositor_frame_sink) {
184 return CreateHostImplWithTaskRunnerProvider( 185 return CreateHostImplWithTaskRunnerProvider(
185 settings, std::move(compositor_frame_sink), &task_runner_provider_); 186 settings, std::move(compositor_frame_sink), &task_runner_provider_);
(...skipping 11530 matching lines...) Expand 10 before | Expand all | Expand 10 after
11716 SetupMouseMoveAtTestScrollbarStates(true); 11717 SetupMouseMoveAtTestScrollbarStates(true);
11717 } 11718 }
11718 11719
11719 TEST_F(LayerTreeHostImplTest, 11720 TEST_F(LayerTreeHostImplTest,
11720 LayerTreeHostImplTestScrollbarStatesInNotMainThreadScorlling) { 11721 LayerTreeHostImplTestScrollbarStatesInNotMainThreadScorlling) {
11721 SetupMouseMoveAtTestScrollbarStates(false); 11722 SetupMouseMoveAtTestScrollbarStates(false);
11722 } 11723 }
11723 11724
11724 } // namespace 11725 } // namespace
11725 } // namespace cc 11726 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698