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

Side by Side Diff: blimp/client/compositor/test/dummy_layer_driver.cc

Issue 1462613002: Move cc::LayerSettings to cc/layers/layer_settings.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cc_perftests Created 5 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 | « blimp/client/compositor/blimp_compositor.cc ('k') | cc/BUILD.gn » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "blimp/client/compositor/test/dummy_layer_driver.h" 5 #include "blimp/client/compositor/test/dummy_layer_driver.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/task_runner.h" 9 #include "base/task_runner.h"
10 #include "base/thread_task_runner_handle.h" 10 #include "base/thread_task_runner_handle.h"
11 #include "cc/layers/layer.h" 11 #include "cc/layers/layer.h"
12 #include "cc/layers/layer_settings.h"
12 #include "cc/layers/solid_color_layer.h" 13 #include "cc/layers/solid_color_layer.h"
13 #include "cc/trees/layer_tree_settings.h" 14 #include "cc/trees/layer_tree_settings.h"
14 #include "ui/gfx/geometry/size.h" 15 #include "ui/gfx/geometry/size.h"
15 16
16 namespace blimp { 17 namespace blimp {
17 18
18 DummyLayerDriver::DummyLayerDriver() 19 DummyLayerDriver::DummyLayerDriver()
19 : layer_(cc::SolidColorLayer::Create(cc::LayerSettings())), 20 : layer_(cc::SolidColorLayer::Create(cc::LayerSettings())),
20 animation_running_(false), 21 animation_running_(false),
21 weak_factory_(this) { 22 weak_factory_(this) {
(...skipping 29 matching lines...) Expand all
51 (SkColorGetB(color) + 1) % 255); 52 (SkColorGetB(color) + 1) % 255);
52 layer_->SetBackgroundColor(color); 53 layer_->SetBackgroundColor(color);
53 54
54 base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( 55 base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
55 FROM_HERE, 56 FROM_HERE,
56 base::Bind(&DummyLayerDriver::StepAnimation, weak_factory_.GetWeakPtr()), 57 base::Bind(&DummyLayerDriver::StepAnimation, weak_factory_.GetWeakPtr()),
57 base::TimeDelta::FromMilliseconds(16)); 58 base::TimeDelta::FromMilliseconds(16));
58 } 59 }
59 60
60 } // namespace blimp 61 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/client/compositor/blimp_compositor.cc ('k') | cc/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698