OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011 Apple Inc. All rights reserved. |
3 * Copyright (C) 2010 Sencha, Inc. All rights reserved. | 3 * Copyright (C) 2010 Sencha, Inc. All rights reserved. |
4 * Copyright (C) 2010 Igalia S.L. All rights reserved. | 4 * Copyright (C) 2010 Igalia S.L. All rights reserved. |
5 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 5 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
6 * | 6 * |
7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
9 * are met: | 9 * are met: |
10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
(...skipping 11 matching lines...) Expand all Loading... |
22 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | 22 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
23 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 23 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
24 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 */ | 27 */ |
28 | 28 |
29 #include "config.h" | 29 #include "config.h" |
30 #include "core/platform/graphics/ShadowBlur.h" | 30 #include "core/platform/graphics/ShadowBlur.h" |
31 | 31 |
32 #include "Timer.h" | 32 #include "core/platform/Timer.h" |
33 #include "core/platform/graphics/FloatQuad.h" | 33 #include "core/platform/graphics/FloatQuad.h" |
34 #include "core/platform/graphics/GraphicsContext.h" | 34 #include "core/platform/graphics/GraphicsContext.h" |
35 #include "core/platform/graphics/ImageBuffer.h" | 35 #include "core/platform/graphics/ImageBuffer.h" |
36 #include "core/platform/graphics/transforms/AffineTransform.h" | 36 #include "core/platform/graphics/transforms/AffineTransform.h" |
37 #include <wtf/MathExtras.h> | 37 #include <wtf/MathExtras.h> |
38 #include <wtf/Noncopyable.h> | 38 #include <wtf/Noncopyable.h> |
39 #include <wtf/UnusedParam.h> | 39 #include <wtf/UnusedParam.h> |
40 | 40 |
41 using namespace std; | 41 using namespace std; |
42 | 42 |
(...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
891 GraphicsContextStateSaver stateSave(*context); | 891 GraphicsContextStateSaver stateSave(*context); |
892 | 892 |
893 context->clearShadow(); | 893 context->clearShadow(); |
894 context->drawImageBuffer(m_layerImage, ColorSpaceDeviceRGB, roundedIntPoint(
m_layerOrigin), IntRect(0, 0, m_layerSize.width(), m_layerSize.height()), contex
t->compositeOperation()); | 894 context->drawImageBuffer(m_layerImage, ColorSpaceDeviceRGB, roundedIntPoint(
m_layerOrigin), IntRect(0, 0, m_layerSize.width(), m_layerSize.height()), contex
t->compositeOperation()); |
895 | 895 |
896 m_layerImage = 0; | 896 m_layerImage = 0; |
897 ScratchBuffer::shared().scheduleScratchBufferPurge(); | 897 ScratchBuffer::shared().scheduleScratchBufferPurge(); |
898 } | 898 } |
899 | 899 |
900 } // namespace WebCore | 900 } // namespace WebCore |
OLD | NEW |