| OLD | NEW |
| 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 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_INSECURE_CONTENT_TRANSIENT_TEXT
URE_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_INSECURE_CONTENT_TRANSIENT_TEXT
URE_H_ |
| 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_INSECURE_CONTENT_TRANSIENT_TEXT
URE_H_ | 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_INSECURE_CONTENT_TRANSIENT_TEXT
URE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" |
| 8 #include "chrome/browser/android/vr_shell/textures/ui_texture.h" | 9 #include "chrome/browser/android/vr_shell/textures/ui_texture.h" |
| 9 | 10 |
| 10 namespace vr_shell { | 11 namespace vr_shell { |
| 11 | 12 |
| 12 class InsecureContentTransientTexture : public UiTexture { | 13 class InsecureContentTransientTexture : public UiTexture { |
| 13 public: | 14 public: |
| 14 InsecureContentTransientTexture(); | 15 InsecureContentTransientTexture(); |
| 15 ~InsecureContentTransientTexture() override; | 16 ~InsecureContentTransientTexture() override; |
| 16 gfx::Size GetPreferredTextureSize(int width) const override; | 17 gfx::Size GetPreferredTextureSize(int width) const override; |
| 17 gfx::SizeF GetDrawnSize() const override; | 18 gfx::SizeF GetDrawnSize() const override; |
| 18 | 19 |
| 19 private: | 20 private: |
| 20 void Draw(SkCanvas* sk_canvas, const gfx::Size& texture_size) override; | 21 void Draw(SkCanvas* sk_canvas, const gfx::Size& texture_size) override; |
| 21 | 22 |
| 22 gfx::SizeF size_; | 23 gfx::SizeF size_; |
| 24 |
| 25 DISALLOW_COPY_AND_ASSIGN(InsecureContentTransientTexture); |
| 23 }; | 26 }; |
| 24 | 27 |
| 25 } // namespace vr_shell | 28 } // namespace vr_shell |
| 26 | 29 |
| 27 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_INSECURE_CONTENT_TRANSIENT_T
EXTURE_H_ | 30 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_INSECURE_CONTENT_TRANSIENT_T
EXTURE_H_ |
| OLD | NEW |