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

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

Issue 1122643005: Make drawImage a virtual on SkDevice (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 7 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/SkPictureRecord.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 2010 Google Inc. 3 * Copyright 2010 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 #ifndef SkGpuDevice_DEFINED 9 #ifndef SkGpuDevice_DEFINED
10 #define SkGpuDevice_DEFINED 10 #define SkGpuDevice_DEFINED
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 const SkPoint& offset, const SkPaint&) override; 108 const SkPoint& offset, const SkPaint&) override;
109 virtual void drawTextBlob(const SkDraw&, const SkTextBlob*, SkScalar x, SkSc alar y, 109 virtual void drawTextBlob(const SkDraw&, const SkTextBlob*, SkScalar x, SkSc alar y,
110 const SkPaint& paint, SkDrawFilter* drawFilter) ov erride; 110 const SkPaint& paint, SkDrawFilter* drawFilter) ov erride;
111 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCou nt, 111 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCou nt,
112 const SkPoint verts[], const SkPoint texs[], 112 const SkPoint verts[], const SkPoint texs[],
113 const SkColor colors[], SkXfermode* xmode, 113 const SkColor colors[], SkXfermode* xmode,
114 const uint16_t indices[], int indexCount, 114 const uint16_t indices[], int indexCount,
115 const SkPaint&) override; 115 const SkPaint&) override;
116 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, 116 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y,
117 const SkPaint&) override; 117 const SkPaint&) override;
118 void drawImage(const SkDraw&, const SkImage*, SkScalar x, SkScalar y, const SkPaint&) override;
119 void drawImageRect(const SkDraw&, const SkImage*, const SkRect* src, const S kRect& dst,
120 const SkPaint&) override;
118 121
119 void flush() override; 122 void flush() override;
120 123
121 void onAttachToCanvas(SkCanvas* canvas) override; 124 void onAttachToCanvas(SkCanvas* canvas) override;
122 void onDetachFromCanvas() override; 125 void onDetachFromCanvas() override;
123 126
124 const SkBitmap& onAccessBitmap() override; 127 const SkBitmap& onAccessBitmap() override;
125 128
126 bool canHandleImageFilter(const SkImageFilter*) override; 129 bool canHandleImageFilter(const SkImageFilter*) override;
127 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, 130 virtual bool filterImage(const SkImageFilter*, const SkBitmap&,
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 221
219 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c onst SkImageInfo&, 222 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c onst SkImageInfo&,
220 int sampleCount); 223 int sampleCount);
221 224
222 friend class GrAtlasTextContext; 225 friend class GrAtlasTextContext;
223 friend class GrTextContext; 226 friend class GrTextContext;
224 typedef SkBaseDevice INHERITED; 227 typedef SkBaseDevice INHERITED;
225 }; 228 };
226 229
227 #endif 230 #endif
OLDNEW
« no previous file with comments | « src/core/SkPictureRecord.cpp ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698