OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 1702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1713 } | 1713 } |
1714 } while (updated); | 1714 } while (updated); |
1715 } | 1715 } |
1716 } | 1716 } |
1717 | 1717 |
1718 static void accumulateLayerRectList(PaintLayerCompositor* compositor, | 1718 static void accumulateLayerRectList(PaintLayerCompositor* compositor, |
1719 GraphicsLayer* graphicsLayer, | 1719 GraphicsLayer* graphicsLayer, |
1720 LayerRectList* rects) { | 1720 LayerRectList* rects) { |
1721 WebVector<blink::WebRect> layerRects = | 1721 WebVector<blink::WebRect> layerRects = |
1722 graphicsLayer->platformLayer()->touchEventHandlerRegion(); | 1722 graphicsLayer->platformLayer()->touchEventHandlerRegion(); |
1723 if (!layerRects.isEmpty()) { | 1723 if (!layerRects.empty()) { |
1724 mergeRects(layerRects); | 1724 mergeRects(layerRects); |
1725 String layerType; | 1725 String layerType; |
1726 IntSize layerOffset; | 1726 IntSize layerOffset; |
1727 PaintLayer* paintLayer = findLayerForGraphicsLayer( | 1727 PaintLayer* paintLayer = findLayerForGraphicsLayer( |
1728 compositor->rootLayer(), graphicsLayer, &layerOffset, &layerType); | 1728 compositor->rootLayer(), graphicsLayer, &layerOffset, &layerType); |
1729 Node* node = paintLayer ? paintLayer->layoutObject().node() : 0; | 1729 Node* node = paintLayer ? paintLayer->layoutObject().node() : 0; |
1730 for (size_t i = 0; i < layerRects.size(); ++i) { | 1730 for (size_t i = 0; i < layerRects.size(); ++i) { |
1731 if (!layerRects[i].isEmpty()) { | 1731 if (!layerRects[i].isEmpty()) { |
1732 rects->append(node, layerType, layerOffset.width(), | 1732 rects->append(node, layerType, layerOffset.width(), |
1733 layerOffset.height(), ClientRect::create(layerRects[i])); | 1733 layerOffset.height(), ClientRect::create(layerRects[i])); |
(...skipping 1486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3220 | 3220 |
3221 void Internals::crash() { | 3221 void Internals::crash() { |
3222 CHECK(false) << "Intentional crash"; | 3222 CHECK(false) << "Intentional crash"; |
3223 } | 3223 } |
3224 | 3224 |
3225 void Internals::setIsLowEndDevice(bool isLowEndDevice) { | 3225 void Internals::setIsLowEndDevice(bool isLowEndDevice) { |
3226 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice); | 3226 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice); |
3227 } | 3227 } |
3228 | 3228 |
3229 } // namespace blink | 3229 } // namespace blink |
OLD | NEW |