Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: Source/core/platform/graphics/Pattern.cpp

Issue 64643009: Remove duplicated headers from core/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple Computer, Inc. All rights reserved.
3 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 3 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
4 * Copyright (C) 2013 Google, Inc. All rights reserved. 4 * Copyright (C) 2013 Google, Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
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 13 matching lines...) Expand all
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28 #include "config.h" 28 #include "config.h"
29 #include "core/platform/graphics/Pattern.h" 29 #include "core/platform/graphics/Pattern.h"
30 30
31 #include <v8.h> 31 #include <v8.h>
32 #include "SkCanvas.h" 32 #include "SkCanvas.h"
33 #include "SkColorShader.h" 33 #include "SkColorShader.h"
34 #include "SkShader.h"
35 #include "core/platform/graphics/Image.h"
36 #include "core/platform/graphics/skia/SkiaUtils.h" 34 #include "core/platform/graphics/skia/SkiaUtils.h"
37 35
38 namespace WebCore { 36 namespace WebCore {
39 37
40 Pattern::Pattern(PassRefPtr<Image> image, bool repeatX, bool repeatY) 38 Pattern::Pattern(PassRefPtr<Image> image, bool repeatX, bool repeatY)
41 : m_repeatX(repeatX) 39 : m_repeatX(repeatX)
42 , m_repeatY(repeatY) 40 , m_repeatY(repeatY)
43 , m_externalMemoryAllocated(0) 41 , m_externalMemoryAllocated(0)
44 { 42 {
45 if (image) { 43 if (image) {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 } 93 }
96 94
97 void Pattern::setPatternSpaceTransform(const AffineTransform& patternSpaceTransf ormation) 95 void Pattern::setPatternSpaceTransform(const AffineTransform& patternSpaceTransf ormation)
98 { 96 {
99 m_patternSpaceTransformation = patternSpaceTransformation; 97 m_patternSpaceTransformation = patternSpaceTransformation;
100 if (m_pattern) 98 if (m_pattern)
101 m_pattern->setLocalMatrix(affineTransformToSkMatrix(m_patternSpaceTransf ormation)); 99 m_pattern->setLocalMatrix(affineTransformToSkMatrix(m_patternSpaceTransf ormation));
102 } 100 }
103 101
104 } 102 }
OLDNEW
« no previous file with comments | « Source/core/platform/graphics/Path.cpp ('k') | Source/core/platform/graphics/SimpleFontData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698