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

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

Issue 2862283002: VR: Add initial URL bar element and texture. (Closed)
Patch Set: Drop anti-aliasing. 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/insecure_content_permanent_texture.cc
diff --git a/chrome/browser/android/vr_shell/textures/insecure_content_permanent_texture.cc b/chrome/browser/android/vr_shell/textures/insecure_content_permanent_texture.cc
index c166797dac6814af3bc5bf2f068fba702a5fea0c..881ffa5567a8d83b7d141560681052f8fceb2b82 100644
--- a/chrome/browser/android/vr_shell/textures/insecure_content_permanent_texture.cc
+++ b/chrome/browser/android/vr_shell/textures/insecure_content_permanent_texture.cc
@@ -33,8 +33,12 @@ InsecureContentPermanentTexture::InsecureContentPermanentTexture() = default;
InsecureContentPermanentTexture::~InsecureContentPermanentTexture() = default;
-void InsecureContentPermanentTexture::Draw(gfx::Canvas* canvas,
+void InsecureContentPermanentTexture::Draw(SkCanvas* sk_canvas,
const gfx::Size& texture_size) {
+ cc::SkiaPaintCanvas paint_canvas(sk_canvas);
+ gfx::Canvas gfx_canvas(&paint_canvas, 1.0f);
+ gfx::Canvas* canvas = &gfx_canvas;
+
DCHECK(texture_size.height() * 4 == texture_size.width());
size_.set_height(texture_size.height());
int max_width = texture_size.width();

Powered by Google App Engine
This is Rietveld 408576698