| 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_UI_TEXTURE_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_UI_TEXTURE_H_ |
| 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_UI_TEXTURE_H_ | 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_UI_TEXTURE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/macros.h" |
| 11 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
| 12 #include "third_party/skia/include/core/SkColor.h" | 13 #include "third_party/skia/include/core/SkColor.h" |
| 13 #include "ui/gfx/geometry/rect.h" | 14 #include "ui/gfx/geometry/rect.h" |
| 14 #include "ui/gfx/geometry/size.h" | 15 #include "ui/gfx/geometry/size.h" |
| 15 #include "ui/gfx/geometry/size_f.h" | 16 #include "ui/gfx/geometry/size_f.h" |
| 16 | 17 |
| 17 class SkCanvas; | 18 class SkCanvas; |
| 18 | 19 |
| 19 namespace gfx { | 20 namespace gfx { |
| 20 | 21 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 static std::vector<std::unique_ptr<gfx::RenderText>> PrepareDrawStringRect( | 55 static std::vector<std::unique_ptr<gfx::RenderText>> PrepareDrawStringRect( |
| 55 const base::string16& text, | 56 const base::string16& text, |
| 56 const gfx::FontList& font_list, | 57 const gfx::FontList& font_list, |
| 57 SkColor color, | 58 SkColor color, |
| 58 gfx::Rect* bounds, | 59 gfx::Rect* bounds, |
| 59 int flags); | 60 int flags); |
| 60 | 61 |
| 61 static bool IsRTL(); | 62 static bool IsRTL(); |
| 62 static gfx::FontList GetDefaultFontList(int size); | 63 static gfx::FontList GetDefaultFontList(int size); |
| 63 static gfx::FontList GetFontList(int size, base::string16 text); | 64 static gfx::FontList GetFontList(int size, base::string16 text); |
| 65 |
| 66 DISALLOW_COPY_AND_ASSIGN(UiTexture); |
| 64 }; | 67 }; |
| 65 | 68 |
| 66 } // namespace vr_shell | 69 } // namespace vr_shell |
| 67 | 70 |
| 68 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_UI_TEXTURE_H_ | 71 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_TEXTURES_UI_TEXTURE_H_ |
| OLD | NEW |