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

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

Issue 1198603002: Rename all things "leaky" in SkDevice (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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/core/SkDraw.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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void clearAll(); 69 void clearAll();
70 70
71 void replaceRenderTarget(bool shouldRetainContent); 71 void replaceRenderTarget(bool shouldRetainContent);
72 72
73 GrRenderTarget* accessRenderTarget() override; 73 GrRenderTarget* accessRenderTarget() override;
74 74
75 SkImageInfo imageInfo() const override { 75 SkImageInfo imageInfo() const override {
76 return fLegacyBitmap.info(); 76 return fLegacyBitmap.info();
77 } 77 }
78 78
79 const SkSurfaceProps& surfaceProps() const {
80 return this->getLeakyProperties();
81 }
82
83 void drawPaint(const SkDraw&, const SkPaint& paint) override; 79 void drawPaint(const SkDraw&, const SkPaint& paint) override;
84 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t coun t, 80 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t coun t,
85 const SkPoint[], const SkPaint& paint) override; 81 const SkPoint[], const SkPaint& paint) override;
86 virtual void drawRect(const SkDraw&, const SkRect& r, 82 virtual void drawRect(const SkDraw&, const SkRect& r,
87 const SkPaint& paint) override; 83 const SkPaint& paint) override;
88 virtual void drawRRect(const SkDraw&, const SkRRect& r, 84 virtual void drawRRect(const SkDraw&, const SkRRect& r,
89 const SkPaint& paint) override; 85 const SkPaint& paint) override;
90 virtual void drawDRRect(const SkDraw& draw, const SkRRect& outer, 86 virtual void drawDRRect(const SkDraw& draw, const SkRRect& outer,
91 const SkRRect& inner, const SkPaint& paint) override ; 87 const SkRRect& inner, const SkPaint& paint) override ;
92 virtual void drawOval(const SkDraw&, const SkRect& oval, 88 virtual void drawOval(const SkDraw&, const SkRect& oval,
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 SkCanvas::DrawBitmapRectFlags flags, 207 SkCanvas::DrawBitmapRectFlags flags,
212 int tileSize, 208 int tileSize,
213 bool bicubic); 209 bool bicubic);
214 210
215 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); 211 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint);
216 212
217 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c onst SkImageInfo&, 213 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c onst SkImageInfo&,
218 int sampleCount); 214 int sampleCount);
219 215
220 friend class GrAtlasTextContext; 216 friend class GrAtlasTextContext;
217 friend class SkSurface_Gpu; // for access to surfaceProps
221 typedef SkBaseDevice INHERITED; 218 typedef SkBaseDevice INHERITED;
222 }; 219 };
223 220
224 #endif 221 #endif
OLDNEW
« no previous file with comments | « src/core/SkDraw.cpp ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698