| Index: chrome/browser/android/vr_shell/ui_elements/textured_element.h
|
| diff --git a/chrome/browser/android/vr_shell/ui_elements/textured_element.h b/chrome/browser/android/vr_shell/ui_elements/textured_element.h
|
| index e6cc7f73e7523b01fd20eafe61b8c6bbfac30b6d..e37014d85fec58cd4443962374af3f76998c78a0 100644
|
| --- a/chrome/browser/android/vr_shell/ui_elements/textured_element.h
|
| +++ b/chrome/browser/android/vr_shell/ui_elements/textured_element.h
|
| @@ -7,10 +7,9 @@
|
|
|
| #include "base/macros.h"
|
| #include "chrome/browser/android/vr_shell/ui_elements/ui_element.h"
|
| +#include "third_party/skia/include/core/SkSurface.h"
|
| #include "ui/gl/gl_bindings.h"
|
|
|
| -class SkSurface;
|
| -
|
| namespace vr_shell {
|
|
|
| class UiTexture;
|
| @@ -23,21 +22,19 @@ class TexturedElement : public UiElement {
|
| explicit TexturedElement(int maximum_width);
|
| ~TexturedElement() override;
|
|
|
| - void Initialize() override;
|
| -
|
| // UiElement interface.
|
| void Render(VrShellRenderer* renderer,
|
| vr::Mat4f view_proj_matrix) const override;
|
|
|
| protected:
|
| + void Initialize() override;
|
| virtual UiTexture* GetTexture() const = 0;
|
|
|
| private:
|
| - void Flush(SkSurface* surface);
|
| -
|
| gfx::Size texture_size_;
|
| GLuint texture_handle_;
|
| int maximum_width_;
|
| + sk_sp<SkSurface> surface_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(TexturedElement);
|
| };
|
|
|