OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 11 matching lines...) Expand all Loading... |
22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH | 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH |
23 * DAMAGE. | 23 * DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #include "platform/graphics/ContentLayerDelegate.h" | 26 #include "platform/graphics/ContentLayerDelegate.h" |
27 | 27 |
28 #include "platform/geometry/IntRect.h" | 28 #include "platform/geometry/IntRect.h" |
29 #include "platform/graphics/GraphicsContext.h" | 29 #include "platform/graphics/GraphicsContext.h" |
30 #include "platform/graphics/GraphicsLayer.h" | 30 #include "platform/graphics/GraphicsLayer.h" |
31 #include "platform/graphics/paint/PaintController.h" | 31 #include "platform/graphics/paint/PaintController.h" |
| 32 #include "platform/graphics/paint/PaintRecord.h" |
32 #include "platform/image-decoders/ImageDecoder.h" | 33 #include "platform/image-decoders/ImageDecoder.h" |
33 #include "platform/instrumentation/tracing/TraceEvent.h" | 34 #include "platform/instrumentation/tracing/TraceEvent.h" |
34 #include "platform/instrumentation/tracing/TracedValue.h" | 35 #include "platform/instrumentation/tracing/TracedValue.h" |
35 #include "public/platform/WebDisplayItemList.h" | 36 #include "public/platform/WebDisplayItemList.h" |
36 #include "public/platform/WebRect.h" | 37 #include "public/platform/WebRect.h" |
37 #include "third_party/skia/include/core/SkPicture.h" | |
38 #include "ui/gfx/color_space.h" | 38 #include "ui/gfx/color_space.h" |
39 #include "ui/gfx/geometry/rect.h" | 39 #include "ui/gfx/geometry/rect.h" |
40 | 40 |
41 namespace blink { | 41 namespace blink { |
42 | 42 |
43 ContentLayerDelegate::ContentLayerDelegate(GraphicsLayer* graphicsLayer) | 43 ContentLayerDelegate::ContentLayerDelegate(GraphicsLayer* graphicsLayer) |
44 : m_graphicsLayer(graphicsLayer) {} | 44 : m_graphicsLayer(graphicsLayer) {} |
45 | 45 |
46 ContentLayerDelegate::~ContentLayerDelegate() {} | 46 ContentLayerDelegate::~ContentLayerDelegate() {} |
47 | 47 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 } | 95 } |
96 paintController.setDisplayItemConstructionIsDisabled(false); | 96 paintController.setDisplayItemConstructionIsDisabled(false); |
97 paintController.setSubsequenceCachingIsDisabled(false); | 97 paintController.setSubsequenceCachingIsDisabled(false); |
98 } | 98 } |
99 | 99 |
100 size_t ContentLayerDelegate::approximateUnsharedMemoryUsage() const { | 100 size_t ContentLayerDelegate::approximateUnsharedMemoryUsage() const { |
101 return m_graphicsLayer->getPaintController().approximateUnsharedMemoryUsage(); | 101 return m_graphicsLayer->getPaintController().approximateUnsharedMemoryUsage(); |
102 } | 102 } |
103 | 103 |
104 } // namespace blink | 104 } // namespace blink |
OLD | NEW |