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

Unified Diff: ui/gfx/compositor/layer.cc

Issue 8764001: Plumb damage rect to browser compositor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address reviewer comments. Created 9 years 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 | « ui/gfx/compositor/compositor_gl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/compositor/layer.cc
diff --git a/ui/gfx/compositor/layer.cc b/ui/gfx/compositor/layer.cc
index c8989992ced678a5400f84f8e7b9f21c77359312..34cc8c099fe50e154720d7006fa977670dc8977d 100644
--- a/ui/gfx/compositor/layer.cc
+++ b/ui/gfx/compositor/layer.cc
@@ -324,12 +324,15 @@ void Layer::SetCanvas(const SkCanvas& canvas, const gfx::Point& origin) {
void Layer::SchedulePaint(const gfx::Rect& invalid_rect) {
#if defined(USE_WEBKIT_COMPOSITOR)
- WebKit::WebFloatRect web_rect(invalid_rect.x(),
+ WebKit::WebFloatRect web_rect(
+ invalid_rect.x(),
invalid_rect.y(),
invalid_rect.width(),
invalid_rect.height());
if (!web_layer_is_accelerated_)
web_layer_.to<WebKit::WebContentLayer>().invalidateRect(web_rect);
+ else
+ web_layer_.to<WebKit::WebExternalTextureLayer>().invalidateRect(web_rect);
#else
invalid_rect_ = invalid_rect_.Union(invalid_rect);
ScheduleDraw();
« no previous file with comments | « ui/gfx/compositor/compositor_gl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698