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

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

Issue 1124003002: Revert of 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;
121 118
122 void flush() override; 119 void flush() override;
123 120
124 void onAttachToCanvas(SkCanvas* canvas) override; 121 void onAttachToCanvas(SkCanvas* canvas) override;
125 void onDetachFromCanvas() override; 122 void onDetachFromCanvas() override;
126 123
127 const SkBitmap& onAccessBitmap() override; 124 const SkBitmap& onAccessBitmap() override;
128 125
129 bool canHandleImageFilter(const SkImageFilter*) override; 126 bool canHandleImageFilter(const SkImageFilter*) override;
130 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, 127 virtual bool filterImage(const SkImageFilter*, const SkBitmap&,
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 218
222 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c onst SkImageInfo&, 219 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c onst SkImageInfo&,
223 int sampleCount); 220 int sampleCount);
224 221
225 friend class GrAtlasTextContext; 222 friend class GrAtlasTextContext;
226 friend class GrTextContext; 223 friend class GrTextContext;
227 typedef SkBaseDevice INHERITED; 224 typedef SkBaseDevice INHERITED;
228 }; 225 };
229 226
230 #endif 227 #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