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

Side by Side Diff: src/core/SkBlitter.h

Issue 1143173011: use pixmaps for dst in sprites -- NO BITMAPS (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add dox Created 5 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
« no previous file with comments | « src/core/SkBitmap.cpp ('k') | src/core/SkBlitter_Sprite.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 * Copyright 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkBlitter_DEFINED 8 #ifndef SkBlitter_DEFINED
9 #define SkBlitter_DEFINED 9 #define SkBlitter_DEFINED
10 10
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 /** @name Factories 122 /** @name Factories
123 Return the correct blitter to use given the specified context. 123 Return the correct blitter to use given the specified context.
124 */ 124 */
125 static SkBlitter* Choose(const SkBitmap& device, 125 static SkBlitter* Choose(const SkBitmap& device,
126 const SkMatrix& matrix, 126 const SkMatrix& matrix,
127 const SkPaint& paint, 127 const SkPaint& paint,
128 SkTBlitterAllocator*, 128 SkTBlitterAllocator*,
129 bool drawCoverage = false); 129 bool drawCoverage = false);
130 130
131 static SkBlitter* ChooseSprite(const SkBitmap& device, 131 static SkBlitter* ChooseSprite(const SkPixmap& dst,
132 const SkPaint&, 132 const SkPaint&,
133 const SkPixmap& src, 133 const SkPixmap& src,
134 int left, int top, 134 int left, int top,
135 SkTBlitterAllocator*); 135 SkTBlitterAllocator*);
136 ///@} 136 ///@}
137 137
138 protected: 138 protected:
139 139
140 SkAutoMalloc fBlitMemory; 140 SkAutoMalloc fBlitMemory;
141 141
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 SkBlitter* apply(SkBlitter* blitter, const SkRegion* clip, 235 SkBlitter* apply(SkBlitter* blitter, const SkRegion* clip,
236 const SkIRect* bounds = NULL); 236 const SkIRect* bounds = NULL);
237 237
238 private: 238 private:
239 SkNullBlitter fNullBlitter; 239 SkNullBlitter fNullBlitter;
240 SkRectClipBlitter fRectBlitter; 240 SkRectClipBlitter fRectBlitter;
241 SkRgnClipBlitter fRgnBlitter; 241 SkRgnClipBlitter fRgnBlitter;
242 }; 242 };
243 243
244 #endif 244 #endif
OLDNEW
« no previous file with comments | « src/core/SkBitmap.cpp ('k') | src/core/SkBlitter_Sprite.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698