OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "platform/graphics/ImagePattern.h" | 5 #include "platform/graphics/ImagePattern.h" |
6 | 6 |
7 #include "platform/graphics/Image.h" | 7 #include "platform/graphics/Image.h" |
8 #include "platform/graphics/skia/SkiaUtils.h" | 8 #include "platform/graphics/skia/SkiaUtils.h" |
9 #include "third_party/skia/include/core/SkCanvas.h" | 9 #include "third_party/skia/include/core/SkCanvas.h" |
10 #include "third_party/skia/include/core/SkImage.h" | 10 #include "third_party/skia/include/core/SkImage.h" |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 RefPtr<SkImage> expandedImage = adoptRef(surface->newImageSnapshot()); | 70 RefPtr<SkImage> expandedImage = adoptRef(surface->newImageSnapshot()); |
71 | 71 |
72 return adoptRef(expandedImage->newShader(tileModeX, tileModeY, &localMatrix)
); | 72 return adoptRef(expandedImage->newShader(tileModeX, tileModeY, &localMatrix)
); |
73 } | 73 } |
74 | 74 |
75 bool ImagePattern::isTextureBacked() const | 75 bool ImagePattern::isTextureBacked() const |
76 { | 76 { |
77 return m_tileImage && m_tileImage->isTextureBacked(); | 77 return m_tileImage && m_tileImage->isTextureBacked(); |
78 } | 78 } |
79 | 79 |
80 } // namespace | 80 } // namespace blink |
OLD | NEW |