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

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

Issue 12466008: PDF: add support for named destinations (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 | « src/core/SkAnnotation.cpp ('k') | src/gpu/SkGpuDevice.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 2011 Google Inc. 3 * Copyright 2011 Google Inc.
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 #include "SkDevice.h" 8 #include "SkDevice.h"
9 #include "SkDeviceProperties.h" 9 #include "SkDeviceProperties.h"
10 #include "SkDraw.h" 10 #include "SkDraw.h"
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 } 341 }
342 342
343 /////////////////////////////////////////////////////////////////////////////// 343 ///////////////////////////////////////////////////////////////////////////////
344 344
345 void SkDevice::drawPaint(const SkDraw& draw, const SkPaint& paint) { 345 void SkDevice::drawPaint(const SkDraw& draw, const SkPaint& paint) {
346 draw.drawPaint(paint); 346 draw.drawPaint(paint);
347 } 347 }
348 348
349 void SkDevice::drawPoints(const SkDraw& draw, SkCanvas::PointMode mode, size_t c ount, 349 void SkDevice::drawPoints(const SkDraw& draw, SkCanvas::PointMode mode, size_t c ount,
350 const SkPoint pts[], const SkPaint& paint) { 350 const SkPoint pts[], const SkPaint& paint) {
351 CHECK_FOR_NODRAW_ANNOTATION(paint);
351 draw.drawPoints(mode, count, pts, paint); 352 draw.drawPoints(mode, count, pts, paint);
352 } 353 }
353 354
354 void SkDevice::drawRect(const SkDraw& draw, const SkRect& r, const SkPaint& pain t) { 355 void SkDevice::drawRect(const SkDraw& draw, const SkRect& r, const SkPaint& pain t) {
355 CHECK_FOR_NODRAW_ANNOTATION(paint); 356 CHECK_FOR_NODRAW_ANNOTATION(paint);
356 draw.drawRect(r, paint); 357 draw.drawRect(r, paint);
357 } 358 }
358 359
359 void SkDevice::drawOval(const SkDraw& draw, const SkRect& oval, const SkPaint& p aint) { 360 void SkDevice::drawOval(const SkDraw& draw, const SkRect& oval, const SkPaint& p aint) {
360 CHECK_FOR_NODRAW_ANNOTATION(paint); 361 CHECK_FOR_NODRAW_ANNOTATION(paint);
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 paint.getStyle() != SkPaint::kFill_Style || 537 paint.getStyle() != SkPaint::kFill_Style ||
537 !SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrcOver_Mode)) { 538 !SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrcOver_Mode)) {
538 // turn off lcd 539 // turn off lcd
539 flags->fFlags = paint.getFlags() & ~SkPaint::kLCDRenderText_Flag; 540 flags->fFlags = paint.getFlags() & ~SkPaint::kLCDRenderText_Flag;
540 flags->fHinting = paint.getHinting(); 541 flags->fHinting = paint.getHinting();
541 return true; 542 return true;
542 } 543 }
543 // we're cool with the paint as is 544 // we're cool with the paint as is
544 return false; 545 return false;
545 } 546 }
OLDNEW
« no previous file with comments | « src/core/SkAnnotation.cpp ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698