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

Side by Side Diff: src/core/SkCanvas.cpp

Issue 13957009: First pass at Comment API (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 8 months 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 | Annotate | Revision Log
OLDNEW
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
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::beginGroup(const char* description) {
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::endGroup() {
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
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() { }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698