| Index: chrome/browser/android/vr_shell/ui_elements/splash_screen_icon.cc
|
| diff --git a/chrome/browser/android/vr_shell/ui_elements/splash_screen_icon.cc b/chrome/browser/android/vr_shell/ui_elements/splash_screen_icon.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..dc67480323e9ff1c6f0146de95eb2f2a1707e313
|
| --- /dev/null
|
| +++ b/chrome/browser/android/vr_shell/ui_elements/splash_screen_icon.cc
|
| @@ -0,0 +1,27 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "chrome/browser/android/vr_shell/ui_elements/splash_screen_icon.h"
|
| +
|
| +#include "base/memory/ptr_util.h"
|
| +#include "chrome/browser/android/vr_shell/textures/splash_screen_icon_texture.h"
|
| +
|
| +namespace vr_shell {
|
| +
|
| +SplashScreenIcon::SplashScreenIcon(int preferred_width)
|
| + : TexturedElement(preferred_width),
|
| + texture_(base::MakeUnique<SplashScreenIconTexture>()) {}
|
| +
|
| +SplashScreenIcon::~SplashScreenIcon() = default;
|
| +
|
| +void SplashScreenIcon::SetSplashScreenIconBitmap(const SkBitmap& bitmap) {
|
| + texture_->SetSplashScreenIconBitmap(bitmap);
|
| + UpdateTexture();
|
| +}
|
| +
|
| +UiTexture* SplashScreenIcon::GetTexture() const {
|
| + return texture_.get();
|
| +}
|
| +
|
| +} // namespace vr_shell
|
|
|