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

Unified Diff: src/gpu/SkGpuDevice.h

Issue 2261003003: store info in basedevice, change getter to non-virtual const& (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: src/gpu/SkGpuDevice.h
diff --git a/src/gpu/SkGpuDevice.h b/src/gpu/SkGpuDevice.h
index d5fe04febf7d61b58b068bce36cd5f73f93de2e3..4de0a50f4b198c446b5af6e7c2730ce47413dcd2 100644
--- a/src/gpu/SkGpuDevice.h
+++ b/src/gpu/SkGpuDevice.h
@@ -66,16 +66,6 @@ public:
GrDrawContext* accessDrawContext() override;
- SkImageInfo imageInfo() const override {
- SkColorType colorType;
- if (!GrPixelConfigToColorType(fDrawContext->config(), &colorType)) {
- colorType = kUnknown_SkColorType;
- }
- return SkImageInfo::Make(fSize.fWidth, fSize.fHeight, colorType,
- fOpaque ? kOpaque_SkAlphaType : kPremul_SkAlphaType,
- sk_ref_sp(fDrawContext->getColorSpace()));
- }
-
void drawPaint(const SkDraw&, const SkPaint& paint) override;
virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t count,
const SkPoint[], const SkPaint& paint) override;
« include/core/SkDevice.h ('K') | « src/core/SkDevice.cpp ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698