| Index: chrome/browser/android/vr_shell/textures/ui_texture.h
|
| diff --git a/chrome/browser/android/vr_shell/textures/ui_texture.h b/chrome/browser/android/vr_shell/textures/ui_texture.h
|
| index ea96cb83140a33885eaa354faad9694969d12734..31d3cdc5f66b51229d986aeca729c92a32865aa8 100644
|
| --- a/chrome/browser/android/vr_shell/textures/ui_texture.h
|
| +++ b/chrome/browser/android/vr_shell/textures/ui_texture.h
|
| @@ -8,8 +8,10 @@
|
| #include <memory>
|
|
|
| #include "base/strings/string16.h"
|
| -#include "third_party/skia/include/core/SkSurface.h"
|
| #include "ui/gfx/geometry/size.h"
|
| +#include "ui/gfx/geometry/size_f.h"
|
| +
|
| +class SkCanvas;
|
|
|
| namespace gfx {
|
| class Canvas;
|
| @@ -20,23 +22,18 @@ namespace vr_shell {
|
|
|
| class UITexture {
|
| public:
|
| - UITexture(int texture_handle, int texture_size);
|
| + UITexture();
|
| virtual ~UITexture();
|
|
|
| - void DrawAndLayout();
|
| - void Flush();
|
| - gfx::Size size() const { return size_; }
|
| + void DrawAndLayout(SkCanvas* canvas, const gfx::Size& texture_size);
|
| + virtual gfx::Size GetPreferredTextureSize(int width) const = 0;
|
| + virtual gfx::SizeF GetActualSize() const = 0;
|
|
|
| protected:
|
| - virtual void Draw(gfx::Canvas* canvas) = 0;
|
| - virtual void SetSize() = 0;
|
| + virtual void Draw(gfx::Canvas* canvas, const gfx::Size& texture_size) = 0;
|
| +
|
| static bool IsRTL();
|
| static gfx::FontList GetFontList(int size, base::string16 text);
|
| -
|
| - int texture_handle_;
|
| - int texture_size_;
|
| - gfx::Size size_;
|
| - sk_sp<SkSurface> surface_;
|
| };
|
|
|
| } // namespace vr_shell
|
|
|