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

Unified Diff: cc/layers/picture_layer.cc

Issue 12912010: cc: Convert non-const reference arguments to pointers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ui/compositor Created 7 years, 9 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 | « cc/debug/overdraw_metrics.cc ('k') | cc/output/delegating_renderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer.cc
diff --git a/cc/layers/picture_layer.cc b/cc/layers/picture_layer.cc
index c6f341ae23456b19e2ff05976adeee8e0a27399d..b758f6d1804c763e1e2955474ffbbd246c22dc3a 100644
--- a/cc/layers/picture_layer.cc
+++ b/cc/layers/picture_layer.cc
@@ -40,7 +40,7 @@ void PictureLayer::PushPropertiesTo(LayerImpl* base_layer) {
layer_impl->SetIsMask(is_mask_);
layer_impl->CreateTilingSet();
layer_impl->invalidation_.Clear();
- layer_impl->invalidation_.Swap(pile_invalidation_);
+ layer_impl->invalidation_.Swap(&pile_invalidation_);
layer_impl->pile_ =
PicturePileImpl::CreateFromOther(pile_, layer_impl->is_using_lcd_text_);
layer_impl->SyncFromActiveLayer();
@@ -77,7 +77,7 @@ void PictureLayer::Update(ResourceUpdateQueue*,
// Calling paint in WebKit can sometimes cause invalidations, so save
// off the invalidation prior to calling update.
- pile_invalidation_.Swap(pending_invalidation_);
+ pile_invalidation_.Swap(&pending_invalidation_);
pending_invalidation_.Clear();
gfx::Rect visible_layer_rect = gfx::ToEnclosingRect(
« no previous file with comments | « cc/debug/overdraw_metrics.cc ('k') | cc/output/delegating_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698