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

Unified Diff: android_webview/browser/browser_view_renderer.cc

Issue 368273008: [WebView] Fix issue with transparent background. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
« no previous file with comments | « android_webview/browser/browser_view_renderer.h ('k') | android_webview/browser/hardware_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/browser_view_renderer.cc
diff --git a/android_webview/browser/browser_view_renderer.cc b/android_webview/browser/browser_view_renderer.cc
index c55577b414f590f6c8445910b1fd050371b292ab..f1ab1b940a74d6ccac278d910f90cecbe6d2b342 100644
--- a/android_webview/browser/browser_view_renderer.cc
+++ b/android_webview/browser/browser_view_renderer.cc
@@ -104,7 +104,6 @@ BrowserViewRenderer::BrowserViewRenderer(
attached_to_window_(false),
hardware_enabled_(false),
dip_scale_(0.0),
- has_transparent_background_(false),
page_scale_factor_(1.0),
on_new_picture_enable_(false),
clear_view_(false),
@@ -255,7 +254,6 @@ bool BrowserViewRenderer::OnDrawHardware(jobject java_canvas) {
draw_gl_input->scroll_offset = last_on_draw_scroll_offset_;
draw_gl_input->width = width_;
draw_gl_input->height = height_;
- draw_gl_input->has_transparent_background = has_transparent_background_;
gfx::Transform transform;
gfx::Size surface_size(width_, height_);
@@ -477,10 +475,6 @@ void BrowserViewRenderer::SetDipScale(float dip_scale) {
CHECK(dip_scale_ > 0);
}
-void BrowserViewRenderer::SetHasTransparentBackground(bool transparent) {
- has_transparent_background_ = transparent;
-}
-
gfx::Vector2d BrowserViewRenderer::max_scroll_offset() const {
DCHECK_GT(dip_scale_, 0);
return gfx::ToCeiledVector2d(gfx::ScaleVector2d(
@@ -731,8 +725,6 @@ std::string BrowserViewRenderer::ToString(AwDrawGLInfo* draw_info) const {
base::StringAppendF(&str, "view_visible: %d ", view_visible_);
base::StringAppendF(&str, "window_visible: %d ", window_visible_);
base::StringAppendF(&str, "dip_scale: %f ", dip_scale_);
- base::StringAppendF(&str, "has_transparent_background_: %d",
- has_transparent_background_);
base::StringAppendF(&str, "page_scale_factor: %f ", page_scale_factor_);
base::StringAppendF(&str,
"compositor_needs_continuous_invalidate: %d ",
« no previous file with comments | « android_webview/browser/browser_view_renderer.h ('k') | android_webview/browser/hardware_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698