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

Side by Side Diff: src/pipe/SkGPipeWrite.cpp

Issue 27343002: Second wave of Win64 warning cleanup (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: switched count_glyphs back to int Created 7 years, 2 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/pdf/SkTSet.h ('k') | src/ports/SkFontHost_win.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 8
9 #include "SkAnnotation.h" 9 #include "SkAnnotation.h"
10 #include "SkBitmapDevice.h" 10 #include "SkBitmapDevice.h"
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 687
688 void SkGPipeCanvas::drawPaint(const SkPaint& paint) { 688 void SkGPipeCanvas::drawPaint(const SkPaint& paint) {
689 NOTIFY_SETUP(this); 689 NOTIFY_SETUP(this);
690 this->writePaint(paint); 690 this->writePaint(paint);
691 if (this->needOpBytes()) { 691 if (this->needOpBytes()) {
692 this->writeOp(kDrawPaint_DrawOp); 692 this->writeOp(kDrawPaint_DrawOp);
693 } 693 }
694 } 694 }
695 695
696 void SkGPipeCanvas::drawPoints(PointMode mode, size_t count, 696 void SkGPipeCanvas::drawPoints(PointMode mode, size_t count,
697 const SkPoint pts[], const SkPaint& paint) { 697 const SkPoint pts[], const SkPaint& paint) {
698 if (count) { 698 if (count) {
699 NOTIFY_SETUP(this); 699 NOTIFY_SETUP(this);
700 this->writePaint(paint); 700 this->writePaint(paint);
701 if (this->needOpBytes(4 + count * sizeof(SkPoint))) { 701 if (this->needOpBytes(4 + count * sizeof(SkPoint))) {
702 this->writeOp(kDrawPoints_DrawOp, mode, 0); 702 this->writeOp(kDrawPoints_DrawOp, mode, 0);
703 fWriter.write32(count); 703 fWriter.write32(count);
704 fWriter.write(pts, count * sizeof(SkPoint)); 704 fWriter.write(pts, count * sizeof(SkPoint));
705 } 705 }
706 } 706 }
707 } 707 }
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
1210 fCanvas->ref(); 1210 fCanvas->ref();
1211 } 1211 }
1212 1212
1213 BitmapShuttle::~BitmapShuttle() { 1213 BitmapShuttle::~BitmapShuttle() {
1214 fCanvas->unref(); 1214 fCanvas->unref();
1215 } 1215 }
1216 1216
1217 bool BitmapShuttle::insert(const SkBitmap& bitmap, int32_t slot) { 1217 bool BitmapShuttle::insert(const SkBitmap& bitmap, int32_t slot) {
1218 return fCanvas->shuttleBitmap(bitmap, slot); 1218 return fCanvas->shuttleBitmap(bitmap, slot);
1219 } 1219 }
OLDNEW
« no previous file with comments | « src/pdf/SkTSet.h ('k') | src/ports/SkFontHost_win.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698