OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/playback/display_list_recording_source.h" | 5 #include "cc/playback/display_list_recording_source.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 | 10 |
9 #include "base/numerics/safe_math.h" | 11 #include "base/numerics/safe_math.h" |
10 #include "cc/base/histograms.h" | 12 #include "cc/base/histograms.h" |
11 #include "cc/base/region.h" | 13 #include "cc/base/region.h" |
12 #include "cc/layers/content_layer_client.h" | 14 #include "cc/layers/content_layer_client.h" |
13 #include "cc/playback/display_item_list.h" | 15 #include "cc/playback/display_item_list.h" |
14 #include "cc/playback/display_list_raster_source.h" | 16 #include "cc/playback/display_list_raster_source.h" |
15 #include "cc/proto/display_list_recording_source.pb.h" | 17 #include "cc/proto/display_list_recording_source.pb.h" |
16 #include "cc/proto/gfx_conversions.h" | 18 #include "cc/proto/gfx_conversions.h" |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 } | 223 } |
222 | 224 |
223 void DisplayListRecordingSource::Clear() { | 225 void DisplayListRecordingSource::Clear() { |
224 recorded_viewport_ = gfx::Rect(); | 226 recorded_viewport_ = gfx::Rect(); |
225 display_list_ = nullptr; | 227 display_list_ = nullptr; |
226 painter_reported_memory_usage_ = 0; | 228 painter_reported_memory_usage_ = 0; |
227 is_solid_color_ = false; | 229 is_solid_color_ = false; |
228 } | 230 } |
229 | 231 |
230 } // namespace cc | 232 } // namespace cc |
OLD | NEW |