Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2124)

Unified Diff: chrome/browser/android/vr_shell/ui_elements/textured_element.h

Issue 2861343002: Enable gpu rasterization in the vr shell
Patch Set: additional trace instrumentation Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
};

Powered by Google App Engine
This is Rietveld 408576698