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

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

Issue 817653003: Update from https://crrev.com/309717 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | cc/trees/layer_tree_host_unittest_proxy.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "base/message_loop/message_loop_proxy.h" 5 #include "base/message_loop/message_loop_proxy.h"
6 #include "base/threading/simple_thread.h" 6 #include "base/threading/simple_thread.h"
7 #include "cc/layers/delegated_frame_provider.h" 7 #include "cc/layers/delegated_frame_provider.h"
8 #include "cc/layers/delegated_frame_resource_collection.h" 8 #include "cc/layers/delegated_frame_resource_collection.h"
9 #include "cc/layers/delegated_renderer_layer.h" 9 #include "cc/layers/delegated_renderer_layer.h"
10 #include "cc/layers/layer.h" 10 #include "cc/layers/layer.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 public base::DelegateSimpleThread::Delegate, 44 public base::DelegateSimpleThread::Delegate,
45 public LayerTreeHostClient, 45 public LayerTreeHostClient,
46 public LayerTreeHostSingleThreadClient { 46 public LayerTreeHostSingleThreadClient {
47 public: 47 public:
48 LayerTreeHostNoMessageLoopTest() 48 LayerTreeHostNoMessageLoopTest()
49 : did_initialize_output_surface_(false), 49 : did_initialize_output_surface_(false),
50 did_commit_(false), 50 did_commit_(false),
51 did_commit_and_draw_frame_(false), 51 did_commit_and_draw_frame_(false),
52 size_(100, 100), 52 size_(100, 100),
53 no_loop_thread_(this, "LayerTreeHostNoMessageLoopTest") {} 53 no_loop_thread_(this, "LayerTreeHostNoMessageLoopTest") {}
54 virtual ~LayerTreeHostNoMessageLoopTest() {} 54 ~LayerTreeHostNoMessageLoopTest() override {}
55 55
56 // LayerTreeHostClient overrides. 56 // LayerTreeHostClient overrides.
57 void WillBeginMainFrame(int frame_id) override {} 57 void WillBeginMainFrame(int frame_id) override {}
58 void BeginMainFrame(const BeginFrameArgs& args) override {} 58 void BeginMainFrame(const BeginFrameArgs& args) override {}
59 void DidBeginMainFrame() override {} 59 void DidBeginMainFrame() override {}
60 void Layout() override {} 60 void Layout() override {}
61 void ApplyViewportDeltas(const gfx::Vector2d& inner_delta, 61 void ApplyViewportDeltas(const gfx::Vector2d& inner_delta,
62 const gfx::Vector2d& outer_delta, 62 const gfx::Vector2d& outer_delta,
63 const gfx::Vector2dF& elastic_overscroll_delta, 63 const gfx::Vector2dF& elastic_overscroll_delta,
64 float page_scale, 64 float page_scale,
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 scoped_refptr<DelegatedFrameProvider> frame_provider_; 233 scoped_refptr<DelegatedFrameProvider> frame_provider_;
234 scoped_refptr<DelegatedRendererLayer> delegated_layer_; 234 scoped_refptr<DelegatedRendererLayer> delegated_layer_;
235 }; 235 };
236 236
237 TEST_F(LayerTreeHostNoMessageLoopDelegatedLayer, SingleDelegatedLayer) { 237 TEST_F(LayerTreeHostNoMessageLoopDelegatedLayer, SingleDelegatedLayer) {
238 RunTest(); 238 RunTest();
239 } 239 }
240 240
241 } // namespace 241 } // namespace
242 } // namespace cc 242 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | cc/trees/layer_tree_host_unittest_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698