OLD | NEW |
---|---|
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2008 The Android Open Source Project | 3 * Copyright 2008 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #include "SkCanvas.h" | 10 #include "SkCanvas.h" |
(...skipping 1953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1964 looper.paint()); | 1964 looper.paint()); |
1965 } | 1965 } |
1966 | 1966 |
1967 LOOPER_END | 1967 LOOPER_END |
1968 } | 1968 } |
1969 | 1969 |
1970 void SkCanvas::drawData(const void* data, size_t length) { | 1970 void SkCanvas::drawData(const void* data, size_t length) { |
1971 // do nothing. Subclasses may do something with the data | 1971 // do nothing. Subclasses may do something with the data |
1972 } | 1972 } |
1973 | 1973 |
1974 void SkCanvas::beginCommentGroup(const char* description) { | |
djsollen
2013/05/28 14:19:11
why not just put the empty impl in the header?
robertphillips
2013/05/28 15:45:31
Done - I was mimicking what was done for drawData.
| |
1975 // do nothing. Subclasses may do something | |
1976 } | |
1977 | |
1978 void SkCanvas::addComment(const char* kywd, const char* value) { | |
1979 // do nothing. Subclasses may do something | |
1980 } | |
1981 | |
1982 void SkCanvas::endCommentGroup() { | |
1983 // do nothing. Subclasses may do something | |
1984 } | |
1985 | |
1974 ////////////////////////////////////////////////////////////////////////////// | 1986 ////////////////////////////////////////////////////////////////////////////// |
1975 // These methods are NOT virtual, and therefore must call back into virtual | 1987 // These methods are NOT virtual, and therefore must call back into virtual |
1976 // methods, rather than actually drawing themselves. | 1988 // methods, rather than actually drawing themselves. |
1977 ////////////////////////////////////////////////////////////////////////////// | 1989 ////////////////////////////////////////////////////////////////////////////// |
1978 | 1990 |
1979 void SkCanvas::drawARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b, | 1991 void SkCanvas::drawARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b, |
1980 SkXfermode::Mode mode) { | 1992 SkXfermode::Mode mode) { |
1981 SkPaint paint; | 1993 SkPaint paint; |
1982 | 1994 |
1983 paint.setARGB(a, r, g, b); | 1995 paint.setARGB(a, r, g, b); |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2128 return *paint; | 2140 return *paint; |
2129 } | 2141 } |
2130 | 2142 |
2131 const SkRegion& SkCanvas::LayerIter::clip() const { return fImpl->getClip(); } | 2143 const SkRegion& SkCanvas::LayerIter::clip() const { return fImpl->getClip(); } |
2132 int SkCanvas::LayerIter::x() const { return fImpl->getX(); } | 2144 int SkCanvas::LayerIter::x() const { return fImpl->getX(); } |
2133 int SkCanvas::LayerIter::y() const { return fImpl->getY(); } | 2145 int SkCanvas::LayerIter::y() const { return fImpl->getY(); } |
2134 | 2146 |
2135 /////////////////////////////////////////////////////////////////////////////// | 2147 /////////////////////////////////////////////////////////////////////////////// |
2136 | 2148 |
2137 SkCanvas::ClipVisitor::~ClipVisitor() { } | 2149 SkCanvas::ClipVisitor::~ClipVisitor() { } |
OLD | NEW |