| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_SPLASH_SCREEN_ICON_TEXTURE_H_ |
| 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_SPLASH_SCREEN_ICON_TEXTURE_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "chrome/browser/android/vr_shell/textures/ui_texture.h" |
| 10 #include "third_party/skia/include/core/SkImage.h" |
| 11 |
| 12 namespace vr_shell { |
| 13 |
| 14 class SplashScreenIconTexture : public UiTexture { |
| 15 public: |
| 16 SplashScreenIconTexture(); |
| 17 ~SplashScreenIconTexture() override; |
| 18 gfx::Size GetPreferredTextureSize(int width) const override; |
| 19 gfx::SizeF GetDrawnSize() const override; |
| 20 |
| 21 void SetSplashScreenIconBitmap(const SkBitmap& bitmap); |
| 22 |
| 23 private: |
| 24 void Draw(SkCanvas* sk_canvas, const gfx::Size& texture_size) override; |
| 25 |
| 26 sk_sp<SkImage> splash_screen_icon_; |
| 27 gfx::SizeF size_; |
| 28 |
| 29 DISALLOW_COPY_AND_ASSIGN(SplashScreenIconTexture); |
| 30 }; |
| 31 |
| 32 } // namespace vr_shell |
| 33 |
| 34 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_SPLASH_SCREEN_ICON_TEXTURE_H
_ |
| OLD | NEW |