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

Side by Side Diff: src/gpu/SkGpuDevice.h

Issue 2151033003: Add SkGpuDevice::asSpecial entry point (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: clean up Created 4 years, 5 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 | « no previous file | src/gpu/SkGpuDevice.cpp » ('j') | src/gpu/SkGpuDevice.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2010 Google Inc. 2 * Copyright 2010 Google Inc.
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 SkGpuDevice_DEFINED 8 #ifndef SkGpuDevice_DEFINED
9 #define SkGpuDevice_DEFINED 9 #define SkGpuDevice_DEFINED
10 10
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 void drawImage(const SkDraw&, const SkImage*, SkScalar x, SkScalar y, const SkPaint&) override; 125 void drawImage(const SkDraw&, const SkImage*, SkScalar x, SkScalar y, const SkPaint&) override;
126 void drawImageRect(const SkDraw&, const SkImage*, const SkRect* src, const S kRect& dst, 126 void drawImageRect(const SkDraw&, const SkImage*, const SkRect* src, const S kRect& dst,
127 const SkPaint&, SkCanvas::SrcRectConstraint) override; 127 const SkPaint&, SkCanvas::SrcRectConstraint) override;
128 128
129 void drawImageNine(const SkDraw& draw, const SkImage* image, const SkIRect& center, 129 void drawImageNine(const SkDraw& draw, const SkImage* image, const SkIRect& center,
130 const SkRect& dst, const SkPaint& paint) override; 130 const SkRect& dst, const SkPaint& paint) override;
131 void drawBitmapNine(const SkDraw& draw, const SkBitmap& bitmap, const SkIRec t& center, 131 void drawBitmapNine(const SkDraw& draw, const SkBitmap& bitmap, const SkIRec t& center,
132 const SkRect& dst, const SkPaint& paint) override; 132 const SkRect& dst, const SkPaint& paint) override;
133 133
134 sk_sp<SkSpecialImage> asSpecial();
134 void drawSpecial(const SkDraw& draw, SkSpecialImage*, 135 void drawSpecial(const SkDraw& draw, SkSpecialImage*,
135 int left, int top, const SkPaint& paint); 136 int left, int top, const SkPaint& paint);
136 137
137 void flush() override; 138 void flush() override;
138 139
139 void onAttachToCanvas(SkCanvas* canvas) override; 140 void onAttachToCanvas(SkCanvas* canvas) override;
140 void onDetachFromCanvas() override; 141 void onDetachFromCanvas() override;
141 142
142 const SkBitmap& onAccessBitmap() override; 143 const SkBitmap& onAccessBitmap() override;
143 bool onAccessPixels(SkPixmap*) override; 144 bool onAccessPixels(SkPixmap*) override;
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 270
270 void drawSpriteWithFilter(const SkDraw&, const SkBitmap&, int x, int y, 271 void drawSpriteWithFilter(const SkDraw&, const SkBitmap&, int x, int y,
271 const SkPaint&) override; 272 const SkPaint&) override;
272 273
273 friend class GrAtlasTextContext; 274 friend class GrAtlasTextContext;
274 friend class SkSurface_Gpu; // for access to surfaceProps 275 friend class SkSurface_Gpu; // for access to surfaceProps
275 typedef SkBaseDevice INHERITED; 276 typedef SkBaseDevice INHERITED;
276 }; 277 };
277 278
278 #endif 279 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/SkGpuDevice.cpp » ('j') | src/gpu/SkGpuDevice.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698