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

Side by Side Diff: ash/wm/boot_splash_screen_chromeos.cc

Issue 1063253003: Remove unnessecary includes of ui/compositor/paint_context.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: headers: . Created 5 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "ash/wm/boot_splash_screen_chromeos.h" 5 #include "ash/wm/boot_splash_screen_chromeos.h"
6 6
7 #include "third_party/skia/include/core/SkBitmap.h" 7 #include "third_party/skia/include/core/SkBitmap.h"
8 #include "ui/aura/window.h" 8 #include "ui/aura/window.h"
9 #include "ui/aura/window_tree_host.h" 9 #include "ui/aura/window_tree_host.h"
10 #include "ui/base/x/x11_util.h" 10 #include "ui/base/x/x11_util.h"
11 #include "ui/compositor/layer.h" 11 #include "ui/compositor/layer.h"
12 #include "ui/compositor/layer_type.h" 12 #include "ui/compositor/layer_type.h"
13 #include "ui/compositor/paint_context.h"
14 #include "ui/compositor/paint_recorder.h" 13 #include "ui/compositor/paint_recorder.h"
15 #include "ui/compositor/scoped_layer_animation_settings.h" 14 #include "ui/compositor/scoped_layer_animation_settings.h"
16 #include "ui/gfx/canvas.h" 15 #include "ui/gfx/canvas.h"
17 16
18 namespace ash { 17 namespace ash {
19 18
20 // ui::LayerDelegate that copies the aura host window's content to a ui::Layer. 19 // ui::LayerDelegate that copies the aura host window's content to a ui::Layer.
21 class BootSplashScreen::CopyHostContentLayerDelegate 20 class BootSplashScreen::CopyHostContentLayerDelegate
22 : public ui::LayerDelegate { 21 : public ui::LayerDelegate {
23 public: 22 public:
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 } 74 }
76 75
77 void BootSplashScreen::StartHideAnimation(base::TimeDelta duration) { 76 void BootSplashScreen::StartHideAnimation(base::TimeDelta duration) {
78 ui::ScopedLayerAnimationSettings settings(layer_->GetAnimator()); 77 ui::ScopedLayerAnimationSettings settings(layer_->GetAnimator());
79 settings.SetTransitionDuration(duration); 78 settings.SetTransitionDuration(duration);
80 settings.SetPreemptionStrategy(ui::LayerAnimator::REPLACE_QUEUED_ANIMATIONS); 79 settings.SetPreemptionStrategy(ui::LayerAnimator::REPLACE_QUEUED_ANIMATIONS);
81 layer_->SetOpacity(0.0f); 80 layer_->SetOpacity(0.0f);
82 } 81 }
83 82
84 } // namespace ash 83 } // namespace ash
OLDNEW
« no previous file with comments | « ash/utility/partial_screenshot_controller.cc ('k') | ash/wm/dock/docked_window_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698