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

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

Issue 1930623003: Clean up test drawContext usage (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix typo Created 4 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/SkMultiPictureDraw.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 * Copyright 2010 Google Inc. 2 * Copyright 2010 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkGpuDevice_DEFINED 8 #ifndef SkGpuDevice_DEFINED
9 #define SkGpuDevice_DEFINED 9 #define SkGpuDevice_DEFINED
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 } 64 }
65 65
66 GrContext* context() const override { return fContext; } 66 GrContext* context() const override { return fContext; }
67 67
68 // set all pixels to 0 68 // set all pixels to 0
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 GrDrawContext* accessDrawContext() override;
74 75
75 SkImageInfo imageInfo() const override { 76 SkImageInfo imageInfo() const override {
76 return fLegacyBitmap.info(); 77 return fLegacyBitmap.info();
77 } 78 }
78 79
79 void drawPaint(const SkDraw&, const SkPaint& paint) override; 80 void drawPaint(const SkDraw&, const SkPaint& paint) override;
80 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t coun t, 81 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t coun t,
81 const SkPoint[], const SkPaint& paint) override; 82 const SkPoint[], const SkPaint& paint) override;
82 virtual void drawRect(const SkDraw&, const SkRect& r, 83 virtual void drawRect(const SkDraw&, const SkRect& r,
83 const SkPaint& paint) override; 84 const SkPaint& paint) override;
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 252
252 void drawSpriteWithFilter(const SkDraw&, const SkBitmap&, int x, int y, 253 void drawSpriteWithFilter(const SkDraw&, const SkBitmap&, int x, int y,
253 const SkPaint&) override; 254 const SkPaint&) override;
254 255
255 friend class GrAtlasTextContext; 256 friend class GrAtlasTextContext;
256 friend class SkSurface_Gpu; // for access to surfaceProps 257 friend class SkSurface_Gpu; // for access to surfaceProps
257 typedef SkBaseDevice INHERITED; 258 typedef SkBaseDevice INHERITED;
258 }; 259 };
259 260
260 #endif 261 #endif
OLDNEW
« no previous file with comments | « src/core/SkMultiPictureDraw.cpp ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698