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

Unified Diff: chrome/browser/android/vr_shell/textures/ui_texture.cc

Issue 2862283002: VR: Add initial URL bar element and texture. (Closed)
Patch Set: 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/textures/ui_texture.cc
diff --git a/chrome/browser/android/vr_shell/textures/ui_texture.cc b/chrome/browser/android/vr_shell/textures/ui_texture.cc
index b5edf11cafcede42e9f3c72f548c09787a5aa0e8..67570c909c589ec33901e712dd47d89843fca330 100644
--- a/chrome/browser/android/vr_shell/textures/ui_texture.cc
+++ b/chrome/browser/android/vr_shell/textures/ui_texture.cc
@@ -30,10 +30,8 @@ UiTexture::UiTexture() = default;
UiTexture::~UiTexture() = default;
void UiTexture::DrawAndLayout(SkCanvas* canvas, const gfx::Size& texture_size) {
- cc::SkiaPaintCanvas paint_canvas(canvas);
- gfx::Canvas gfx_canvas(&paint_canvas, 1.0f);
- gfx_canvas.DrawColor(SK_ColorTRANSPARENT);
- Draw(&gfx_canvas, texture_size);
+ canvas->drawColor(SK_ColorTRANSPARENT);
+ Draw(canvas, texture_size);
}
bool UiTexture::IsRTL() {

Powered by Google App Engine
This is Rietveld 408576698