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

Side by Side Diff: chrome/browser/android/vr_shell/ui_elements/splash_screen_icon.cc

Issue 2966793002: NOT FOR REVIEW - convert to cc animation
Patch Set: switch to transform operations Created 3 years, 5 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 "chrome/browser/android/vr_shell/ui_elements/splash_screen_icon.h" 5 #include "chrome/browser/android/vr_shell/ui_elements/splash_screen_icon.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "chrome/browser/android/vr_shell/textures/splash_screen_icon_texture.h" 8 #include "chrome/browser/android/vr_shell/textures/splash_screen_icon_texture.h"
9 9
10 namespace vr_shell { 10 namespace vr_shell {
11 11
12 SplashScreenIcon::SplashScreenIcon(int preferred_width) 12 SplashScreenIcon::SplashScreenIcon(int id, int preferred_width)
13 : TexturedElement(preferred_width), 13 : TexturedElement(id, preferred_width),
14 texture_(base::MakeUnique<SplashScreenIconTexture>()) {} 14 texture_(base::MakeUnique<SplashScreenIconTexture>()) {}
15 15
16 SplashScreenIcon::~SplashScreenIcon() = default; 16 SplashScreenIcon::~SplashScreenIcon() = default;
17 17
18 void SplashScreenIcon::SetSplashScreenIconBitmap(const SkBitmap& bitmap) { 18 void SplashScreenIcon::SetSplashScreenIconBitmap(const SkBitmap& bitmap) {
19 texture_->SetSplashScreenIconBitmap(bitmap); 19 texture_->SetSplashScreenIconBitmap(bitmap);
20 UpdateTexture(); 20 UpdateTexture();
21 } 21 }
22 22
23 UiTexture* SplashScreenIcon::GetTexture() const { 23 UiTexture* SplashScreenIcon::GetTexture() const {
24 return texture_.get(); 24 return texture_.get();
25 } 25 }
26 26
27 } // namespace vr_shell 27 } // namespace vr_shell
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698