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

Unified Diff: ash/wm/boot_splash_screen_chromeos.cc

Issue 2095193002: clang-format all of //ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/wm/ash_native_cursor_manager_interactive_uitest.cc ('k') | ash/wm/cursor_manager_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/boot_splash_screen_chromeos.cc
diff --git a/ash/wm/boot_splash_screen_chromeos.cc b/ash/wm/boot_splash_screen_chromeos.cc
index b3ad599980af4c8cc8b016d6015937910971dbb1..2e4fd7838bcd9ee0259f226825eda1e6aa8859f3 100644
--- a/ash/wm/boot_splash_screen_chromeos.cc
+++ b/ash/wm/boot_splash_screen_chromeos.cc
@@ -34,13 +34,13 @@ class BootSplashScreen::CopyHostContentLayerDelegate
// ui::LayerDelegate overrides:
void OnPaintLayer(const ui::PaintContext& context) override {
- // It'd be safer to copy the area to a canvas in the constructor and then
- // copy from that canvas to this one here, but this appears to work (i.e. we
- // only call this before we draw our first frame) and it saves us an extra
- // copy.
- // TODO(derat): Instead of copying the data, use GLX_EXT_texture_from_pixmap
- // to create a zero-copy texture (when possible):
- // https://codereview.chromium.org/10543125
+// It'd be safer to copy the area to a canvas in the constructor and then
+// copy from that canvas to this one here, but this appears to work (i.e. we
+// only call this before we draw our first frame) and it saves us an extra
+// copy.
+// TODO(derat): Instead of copying the data, use GLX_EXT_texture_from_pixmap
+// to create a zero-copy texture (when possible):
+// https://codereview.chromium.org/10543125
#if defined(USE_X11)
ui::PaintRecorder recorder(context, host_->GetBounds().size());
ui::CopyAreaToCanvas(host_->GetAcceleratedWidget(), host_->GetBounds(),
@@ -78,8 +78,7 @@ BootSplashScreen::BootSplashScreen(aura::WindowTreeHost* host)
root_layer->StackAtTop(layer_.get());
}
-BootSplashScreen::~BootSplashScreen() {
-}
+BootSplashScreen::~BootSplashScreen() {}
void BootSplashScreen::StartHideAnimation(base::TimeDelta duration) {
ui::ScopedLayerAnimationSettings settings(layer_->GetAnimator());
« no previous file with comments | « ash/wm/ash_native_cursor_manager_interactive_uitest.cc ('k') | ash/wm/cursor_manager_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698