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

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: Addressed code review issues Created 7 years, 6 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
« no previous file with comments | « include/utils/SkProxyCanvas.h ('k') | src/core/SkPictureFlat.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1992 matching lines...) Expand 10 before | Expand all | Expand 10 after
2003 2003
2004 while (iter.next()) { 2004 while (iter.next()) {
2005 iter.fDevice->drawVertices(iter, vmode, vertexCount, verts, texs, 2005 iter.fDevice->drawVertices(iter, vmode, vertexCount, verts, texs,
2006 colors, xmode, indices, indexCount, 2006 colors, xmode, indices, indexCount,
2007 looper.paint()); 2007 looper.paint());
2008 } 2008 }
2009 2009
2010 LOOPER_END 2010 LOOPER_END
2011 } 2011 }
2012 2012
2013 void SkCanvas::drawData(const void* data, size_t length) {
2014 // do nothing. Subclasses may do something with the data
2015 }
2016
2017 ////////////////////////////////////////////////////////////////////////////// 2013 //////////////////////////////////////////////////////////////////////////////
2018 // These methods are NOT virtual, and therefore must call back into virtual 2014 // These methods are NOT virtual, and therefore must call back into virtual
2019 // methods, rather than actually drawing themselves. 2015 // methods, rather than actually drawing themselves.
2020 ////////////////////////////////////////////////////////////////////////////// 2016 //////////////////////////////////////////////////////////////////////////////
2021 2017
2022 void SkCanvas::drawARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b, 2018 void SkCanvas::drawARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b,
2023 SkXfermode::Mode mode) { 2019 SkXfermode::Mode mode) {
2024 SkPaint paint; 2020 SkPaint paint;
2025 2021
2026 paint.setARGB(a, r, g, b); 2022 paint.setARGB(a, r, g, b);
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
2171 return *paint; 2167 return *paint;
2172 } 2168 }
2173 2169
2174 const SkRegion& SkCanvas::LayerIter::clip() const { return fImpl->getClip(); } 2170 const SkRegion& SkCanvas::LayerIter::clip() const { return fImpl->getClip(); }
2175 int SkCanvas::LayerIter::x() const { return fImpl->getX(); } 2171 int SkCanvas::LayerIter::x() const { return fImpl->getX(); }
2176 int SkCanvas::LayerIter::y() const { return fImpl->getY(); } 2172 int SkCanvas::LayerIter::y() const { return fImpl->getY(); }
2177 2173
2178 /////////////////////////////////////////////////////////////////////////////// 2174 ///////////////////////////////////////////////////////////////////////////////
2179 2175
2180 SkCanvas::ClipVisitor::~ClipVisitor() { } 2176 SkCanvas::ClipVisitor::~ClipVisitor() { }
OLDNEW
« no previous file with comments | « include/utils/SkProxyCanvas.h ('k') | src/core/SkPictureFlat.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698