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

Unified Diff: android_webview/browser/hardware_renderer.cc

Issue 1175113010: cc: Rename visible_content_rect and content stuff on quads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename-visible-content-rect: moreandroid Created 5 years, 6 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 | « no previous file | cc/debug/invalidation_benchmark.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/hardware_renderer.cc
diff --git a/android_webview/browser/hardware_renderer.cc b/android_webview/browser/hardware_renderer.cc
index 7e271ce3af01e8040690b827d029f49cfa38a037..224630d0240b9b40a60bdd5319c0f5e1cc2948fd 100644
--- a/android_webview/browser/hardware_renderer.cc
+++ b/android_webview/browser/hardware_renderer.cc
@@ -150,15 +150,15 @@ void HardwareRenderer::DrawGL(bool stencil_enabled,
cc::SharedQuadState* quad_state =
render_pass->CreateAndAppendSharedQuadState();
- quad_state->content_to_target_transform = transform;
- quad_state->content_bounds = frame_size_;
- quad_state->visible_content_rect = gfx::Rect(frame_size_);
+ quad_state->quad_to_target_transform = transform;
+ quad_state->quad_layer_bounds = frame_size_;
+ quad_state->visible_quad_layer_rect = gfx::Rect(frame_size_);
quad_state->opacity = 1.f;
cc::SurfaceDrawQuad* surface_quad =
render_pass->CreateAndAppendDrawQuad<cc::SurfaceDrawQuad>();
- surface_quad->SetNew(quad_state, gfx::Rect(quad_state->content_bounds),
- gfx::Rect(quad_state->content_bounds), child_id_);
+ surface_quad->SetNew(quad_state, gfx::Rect(quad_state->quad_layer_bounds),
+ gfx::Rect(quad_state->quad_layer_bounds), child_id_);
scoped_ptr<cc::DelegatedFrameData> delegated_frame(
new cc::DelegatedFrameData);
« no previous file with comments | « no previous file | cc/debug/invalidation_benchmark.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698