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

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

Issue 13116018: Adding unit test for verifying copy on write in SkSurface + bug fix in SkCanvas::clear (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 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 | « gyp/tests.gyp ('k') | tests/SurfaceTest.cpp » ('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 1457 matching lines...) Expand 10 before | Expand all | Expand 10 after
1468 } 1468 }
1469 } 1469 }
1470 1470
1471 1471
1472 ////////////////////////////////////////////////////////////////////////////// 1472 //////////////////////////////////////////////////////////////////////////////
1473 // These are the virtual drawing methods 1473 // These are the virtual drawing methods
1474 ////////////////////////////////////////////////////////////////////////////// 1474 //////////////////////////////////////////////////////////////////////////////
1475 1475
1476 void SkCanvas::clear(SkColor color) { 1476 void SkCanvas::clear(SkColor color) {
1477 SkDrawIter iter(this); 1477 SkDrawIter iter(this);
1478 1478 this->predrawNotify();
1479 while (iter.next()) { 1479 while (iter.next()) {
1480 iter.fDevice->clear(color); 1480 iter.fDevice->clear(color);
1481 } 1481 }
1482 } 1482 }
1483 1483
1484 void SkCanvas::drawPaint(const SkPaint& paint) { 1484 void SkCanvas::drawPaint(const SkPaint& paint) {
1485 this->internalDrawPaint(paint); 1485 this->internalDrawPaint(paint);
1486 } 1486 }
1487 1487
1488 void SkCanvas::internalDrawPaint(const SkPaint& paint) { 1488 void SkCanvas::internalDrawPaint(const SkPaint& paint) {
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after
2128 return *paint; 2128 return *paint;
2129 } 2129 }
2130 2130
2131 const SkRegion& SkCanvas::LayerIter::clip() const { return fImpl->getClip(); } 2131 const SkRegion& SkCanvas::LayerIter::clip() const { return fImpl->getClip(); }
2132 int SkCanvas::LayerIter::x() const { return fImpl->getX(); } 2132 int SkCanvas::LayerIter::x() const { return fImpl->getX(); }
2133 int SkCanvas::LayerIter::y() const { return fImpl->getY(); } 2133 int SkCanvas::LayerIter::y() const { return fImpl->getY(); }
2134 2134
2135 /////////////////////////////////////////////////////////////////////////////// 2135 ///////////////////////////////////////////////////////////////////////////////
2136 2136
2137 SkCanvas::ClipVisitor::~ClipVisitor() { } 2137 SkCanvas::ClipVisitor::~ClipVisitor() { }
OLDNEW
« no previous file with comments | « gyp/tests.gyp ('k') | tests/SurfaceTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698