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

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

Issue 1159973002: Break GrTextContext's reliance on SkGpuDevice (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: clean up 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/GrTextContext.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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 const SkImageFilter::Context&, 131 const SkImageFilter::Context&,
132 SkBitmap*, SkIPoint*) override; 132 SkBitmap*, SkIPoint*) override;
133 133
134 bool filterTexture(GrContext*, GrTexture*, int width, int height, const SkIm ageFilter*, 134 bool filterTexture(GrContext*, GrTexture*, int width, int height, const SkIm ageFilter*,
135 const SkImageFilter::Context&, 135 const SkImageFilter::Context&,
136 SkBitmap* result, SkIPoint* offset); 136 SkBitmap* result, SkIPoint* offset);
137 137
138 protected: 138 protected:
139 bool onReadPixels(const SkImageInfo&, void*, size_t, int, int) override; 139 bool onReadPixels(const SkImageInfo&, void*, size_t, int, int) override;
140 bool onWritePixels(const SkImageInfo&, const void*, size_t, int, int) overri de; 140 bool onWritePixels(const SkImageInfo&, const void*, size_t, int, int) overri de;
141 bool onShouldDisableLCD(const SkPaint&) const override; 141 bool onShouldDisableLCD(const SkPaint&) const final;
142 142
143 /** PRIVATE / EXPERIMENTAL -- do not call */ 143 /** PRIVATE / EXPERIMENTAL -- do not call */
144 virtual bool EXPERIMENTAL_drawPicture(SkCanvas* canvas, const SkPicture* pic ture, 144 virtual bool EXPERIMENTAL_drawPicture(SkCanvas* canvas, const SkPicture* pic ture,
145 const SkMatrix*, const SkPaint*) overr ide; 145 const SkMatrix*, const SkPaint*) overr ide;
146 146
147 private: 147 private:
148 GrContext* fContext; 148 GrContext* fContext;
149 GrSkDrawProcs* fDrawProcs; 149 GrSkDrawProcs* fDrawProcs;
150 SkAutoTUnref<const SkClipStack> fClipStack; 150 SkAutoTUnref<const SkClipStack> fClipStack;
151 SkIPoint fClipOrigin; 151 SkIPoint fClipOrigin;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 216
217 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c onst SkImageInfo&, 217 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c onst SkImageInfo&,
218 int sampleCount); 218 int sampleCount);
219 219
220 friend class GrAtlasTextContext; 220 friend class GrAtlasTextContext;
221 friend class GrTextContext; 221 friend class GrTextContext;
222 typedef SkBaseDevice INHERITED; 222 typedef SkBaseDevice INHERITED;
223 }; 223 };
224 224
225 #endif 225 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrTextContext.cpp ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698