| 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 17 matching lines...) Expand all Loading... |
| 28 #include "platform/RuntimeEnabledFeatures.h" | 28 #include "platform/RuntimeEnabledFeatures.h" |
| 29 #include "platform/geometry/IntRect.h" | 29 #include "platform/geometry/IntRect.h" |
| 30 #include "platform/graphics/GraphicsContext.h" | 30 #include "platform/graphics/GraphicsContext.h" |
| 31 #include "platform/graphics/GraphicsLayer.h" | 31 #include "platform/graphics/GraphicsLayer.h" |
| 32 #include "platform/graphics/paint/PaintController.h" | 32 #include "platform/graphics/paint/PaintController.h" |
| 33 #include "platform/image-decoders/ImageDecoder.h" | 33 #include "platform/image-decoders/ImageDecoder.h" |
| 34 #include "platform/tracing/TraceEvent.h" | 34 #include "platform/tracing/TraceEvent.h" |
| 35 #include "platform/tracing/TracedValue.h" | 35 #include "platform/tracing/TracedValue.h" |
| 36 #include "public/platform/WebDisplayItemList.h" | 36 #include "public/platform/WebDisplayItemList.h" |
| 37 #include "public/platform/WebRect.h" | 37 #include "public/platform/WebRect.h" |
| 38 #include "third_party/skia/include/core/SkPicture.h" | 38 #include "skia/ext/cdl_picture.h" |
| 39 #include "ui/gfx/color_space.h" | 39 #include "ui/gfx/color_space.h" |
| 40 #include "ui/gfx/geometry/rect.h" | 40 #include "ui/gfx/geometry/rect.h" |
| 41 | 41 |
| 42 namespace blink { | 42 namespace blink { |
| 43 | 43 |
| 44 ContentLayerDelegate::ContentLayerDelegate(GraphicsLayer* graphicsLayer) | 44 ContentLayerDelegate::ContentLayerDelegate(GraphicsLayer* graphicsLayer) |
| 45 : m_graphicsLayer(graphicsLayer) {} | 45 : m_graphicsLayer(graphicsLayer) {} |
| 46 | 46 |
| 47 ContentLayerDelegate::~ContentLayerDelegate() {} | 47 ContentLayerDelegate::~ContentLayerDelegate() {} |
| 48 | 48 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 } | 98 } |
| 99 paintController.setDisplayItemConstructionIsDisabled(false); | 99 paintController.setDisplayItemConstructionIsDisabled(false); |
| 100 paintController.setSubsequenceCachingIsDisabled(false); | 100 paintController.setSubsequenceCachingIsDisabled(false); |
| 101 } | 101 } |
| 102 | 102 |
| 103 size_t ContentLayerDelegate::approximateUnsharedMemoryUsage() const { | 103 size_t ContentLayerDelegate::approximateUnsharedMemoryUsage() const { |
| 104 return m_graphicsLayer->getPaintController().approximateUnsharedMemoryUsage(); | 104 return m_graphicsLayer->getPaintController().approximateUnsharedMemoryUsage(); |
| 105 } | 105 } |
| 106 | 106 |
| 107 } // namespace blink | 107 } // namespace blink |
| OLD | NEW |