| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "cc/resources/picture_pile.h" | 5 #include "cc/resources/picture_pile.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 } | 144 } |
| 145 | 145 |
| 146 PicturePile::~PicturePile() { | 146 PicturePile::~PicturePile() { |
| 147 } | 147 } |
| 148 | 148 |
| 149 bool PicturePile::Update( | 149 bool PicturePile::Update( |
| 150 ContentLayerClient* painter, | 150 ContentLayerClient* painter, |
| 151 SkColor background_color, | 151 SkColor background_color, |
| 152 bool contents_opaque, | 152 bool contents_opaque, |
| 153 const Region& invalidation, | 153 const Region& invalidation, |
| 154 gfx::Rect visible_layer_rect, | 154 const gfx::Rect& visible_layer_rect, |
| 155 int frame_number, | 155 int frame_number, |
| 156 RenderingStatsInstrumentation* stats_instrumentation) { | 156 RenderingStatsInstrumentation* stats_instrumentation) { |
| 157 background_color_ = background_color; | 157 background_color_ = background_color; |
| 158 contents_opaque_ = contents_opaque; | 158 contents_opaque_ = contents_opaque; |
| 159 | 159 |
| 160 gfx::Rect interest_rect = visible_layer_rect; | 160 gfx::Rect interest_rect = visible_layer_rect; |
| 161 interest_rect.Inset( | 161 interest_rect.Inset( |
| 162 -kPixelDistanceToRecord, | 162 -kPixelDistanceToRecord, |
| 163 -kPixelDistanceToRecord, | 163 -kPixelDistanceToRecord, |
| 164 -kPixelDistanceToRecord, | 164 -kPixelDistanceToRecord, |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 info.SetPicture(picture); | 246 info.SetPicture(picture); |
| 247 } | 247 } |
| 248 } | 248 } |
| 249 } | 249 } |
| 250 | 250 |
| 251 UpdateRecordedRegion(); | 251 UpdateRecordedRegion(); |
| 252 return true; | 252 return true; |
| 253 } | 253 } |
| 254 | 254 |
| 255 } // namespace cc | 255 } // namespace cc |
| OLD | NEW |