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

Side by Side Diff: src/pipe/SkGPipePriv.h

Issue 705633002: Revert of Override SkCanvas::drawImage() in SkDeferredCanvas and SkGPipe (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « include/utils/SkDeferredCanvas.h ('k') | src/pipe/SkGPipeRead.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 9
10 10
(...skipping 28 matching lines...) Expand all
39 kClipRect_DrawOp, 39 kClipRect_DrawOp,
40 kClipRRect_DrawOp, 40 kClipRRect_DrawOp,
41 kConcat_DrawOp, 41 kConcat_DrawOp,
42 kDrawBitmap_DrawOp, 42 kDrawBitmap_DrawOp,
43 kDrawBitmapMatrix_DrawOp, 43 kDrawBitmapMatrix_DrawOp,
44 kDrawBitmapNine_DrawOp, 44 kDrawBitmapNine_DrawOp,
45 kDrawBitmapRectToRect_DrawOp, 45 kDrawBitmapRectToRect_DrawOp,
46 kDrawClear_DrawOp, 46 kDrawClear_DrawOp,
47 kDrawData_DrawOp, 47 kDrawData_DrawOp,
48 kDrawDRRect_DrawOp, 48 kDrawDRRect_DrawOp,
49 kDrawImage_DrawOp,
50 kDrawImageRect_DrawOp,
51 kDrawOval_DrawOp, 49 kDrawOval_DrawOp,
52 kDrawPaint_DrawOp, 50 kDrawPaint_DrawOp,
53 kDrawPatch_DrawOp, 51 kDrawPatch_DrawOp,
54 kDrawPath_DrawOp, 52 kDrawPath_DrawOp,
55 kDrawPicture_DrawOp, 53 kDrawPicture_DrawOp,
56 kDrawPoints_DrawOp, 54 kDrawPoints_DrawOp,
57 kDrawPosText_DrawOp, 55 kDrawPosText_DrawOp,
58 kDrawPosTextH_DrawOp, 56 kDrawPosTextH_DrawOp,
59 kDrawRect_DrawOp, 57 kDrawRect_DrawOp,
60 kDrawRRect_DrawOp, 58 kDrawRRect_DrawOp,
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 enum { 150 enum {
153 kDrawBitmap_HasPaint_DrawOpFlag = 1 << 0, 151 kDrawBitmap_HasPaint_DrawOpFlag = 1 << 0,
154 // Specific to drawBitmapRect, but needs to be different from HasPaint, 152 // Specific to drawBitmapRect, but needs to be different from HasPaint,
155 // which is used for all drawBitmap calls, so include it here. 153 // which is used for all drawBitmap calls, so include it here.
156 kDrawBitmap_HasSrcRect_DrawOpFlag = 1 << 1, 154 kDrawBitmap_HasSrcRect_DrawOpFlag = 1 << 1,
157 // SkCanvas::DrawBitmapRectFlags::kBleed_DrawBitmapRectFlag is 155 // SkCanvas::DrawBitmapRectFlags::kBleed_DrawBitmapRectFlag is
158 // converted into and out of this flag to save space 156 // converted into and out of this flag to save space
159 kDrawBitmap_Bleed_DrawOpFlag = 1 << 2, 157 kDrawBitmap_Bleed_DrawOpFlag = 1 << 2,
160 }; 158 };
161 enum { 159 enum {
162 kDrawImage_HasPaint_DrawOpFlag = 1 << 0,
163 kDrawImage_HasSrcRect_DrawOpFlag = 1 << 1,
164 };
165 enum {
166 kClip_HasAntiAlias_DrawOpFlag = 1 << 0, 160 kClip_HasAntiAlias_DrawOpFlag = 1 << 0,
167 }; 161 };
168 /////////////////////////////////////////////////////////////////////////////// 162 ///////////////////////////////////////////////////////////////////////////////
169 163
170 class BitmapInfo : SkNoncopyable { 164 class BitmapInfo : SkNoncopyable {
171 public: 165 public:
172 BitmapInfo(SkBitmap* bitmap, uint32_t genID, int toBeDrawnCount) 166 BitmapInfo(SkBitmap* bitmap, uint32_t genID, int toBeDrawnCount)
173 : fBitmap(bitmap) 167 : fBitmap(bitmap)
174 , fGenID(genID) 168 , fGenID(genID)
175 , fBytesAllocated(0) 169 , fBytesAllocated(0)
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 SkASSERT(0 == (op & ~PAINTOPS_OP_MASK)); 281 SkASSERT(0 == (op & ~PAINTOPS_OP_MASK));
288 SkASSERT(0 == (flags & ~PAINTOPS_FLAG_MASK)); 282 SkASSERT(0 == (flags & ~PAINTOPS_FLAG_MASK));
289 SkASSERT(0 == (data & ~PAINTOPS_DATA_MASK)); 283 SkASSERT(0 == (data & ~PAINTOPS_DATA_MASK));
290 284
291 return (op << (PAINTOPS_FLAG_BITS + PAINTOPS_DATA_BITS)) | 285 return (op << (PAINTOPS_FLAG_BITS + PAINTOPS_DATA_BITS)) |
292 (flags << PAINTOPS_DATA_BITS) | 286 (flags << PAINTOPS_DATA_BITS) |
293 data; 287 data;
294 } 288 }
295 289
296 #endif 290 #endif
OLDNEW
« no previous file with comments | « include/utils/SkDeferredCanvas.h ('k') | src/pipe/SkGPipeRead.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698