| // Copyright 2017 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "platform/graphics/paint/PaintChunk.h" |
| |
| #include "platform/wtf/text/WTFString.h" |
| |
| namespace blink { |
| |
| String PaintChunk::ToString() const { |
| return String::Format( |
| "begin=%zu, end=%zu, id=%s cacheable=%d props=(%s) bounds=%s " |
| "known_to_be_opaque=%d raster_invalidation_rects=%zu", |
| begin_index, end_index, id.ToString().Ascii().data(), is_cacheable, |
| properties.ToString().Ascii().data(), bounds.ToString().Ascii().data(), |
| known_to_be_opaque, raster_invalidation_rects.size()); |
| } |
| |
| } // namespace blink |