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

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

Issue 1168303006: Revert[2] SkDraw and all Blitters to use pixmap instead of bitmapi (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add dox to new test 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/gpu/GrSWMaskHelper.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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 void drawImage(const SkDraw&, const SkImage*, SkScalar x, SkScalar y, 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, 119 void drawImageRect(const SkDraw&, const SkImage*, const SkRect* src, const S kRect& dst,
120 const SkPaint&) override; 120 const SkPaint&) override;
121 121
122 void flush() override; 122 void flush() override;
123 123
124 void onAttachToCanvas(SkCanvas* canvas) override; 124 void onAttachToCanvas(SkCanvas* canvas) override;
125 void onDetachFromCanvas() override; 125 void onDetachFromCanvas() override;
126 126
127 const SkBitmap& onAccessBitmap() override; 127 const SkBitmap& onAccessBitmap() override;
128 bool onAccessPixels(SkPixmap*) override;
128 129
129 bool canHandleImageFilter(const SkImageFilter*) override; 130 bool canHandleImageFilter(const SkImageFilter*) override;
130 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, 131 virtual bool filterImage(const SkImageFilter*, const SkBitmap&,
131 const SkImageFilter::Context&, 132 const SkImageFilter::Context&,
132 SkBitmap*, SkIPoint*) override; 133 SkBitmap*, SkIPoint*) override;
133 134
134 bool filterTexture(GrContext*, GrTexture*, int width, int height, const SkIm ageFilter*, 135 bool filterTexture(GrContext*, GrTexture*, int width, int height, const SkIm ageFilter*,
135 const SkImageFilter::Context&, 136 const SkImageFilter::Context&,
136 SkBitmap* result, SkIPoint* offset); 137 SkBitmap* result, SkIPoint* offset);
137 138
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 217
217 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c onst SkImageInfo&, 218 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c onst SkImageInfo&,
218 int sampleCount); 219 int sampleCount);
219 220
220 friend class GrAtlasTextContext; 221 friend class GrAtlasTextContext;
221 friend class GrTextContext; 222 friend class GrTextContext;
222 typedef SkBaseDevice INHERITED; 223 typedef SkBaseDevice INHERITED;
223 }; 224 };
224 225
225 #endif 226 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrSWMaskHelper.cpp ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698