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

Unified Diff: src/gpu/SkGpuDevice.h

Issue 2208483004: Remove GrRenderTarget member variable from SkGpuDevice (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update to ToT 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
« no previous file with comments | « src/gpu/GrDrawContextPriv.h ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/SkGpuDevice.h
diff --git a/src/gpu/SkGpuDevice.h b/src/gpu/SkGpuDevice.h
index 8624ae19f372022c4139fcc98e8afd2202ce9ac5..1b41bde3a9c7545315f1b93b4a496755e21744b4 100644
--- a/src/gpu/SkGpuDevice.h
+++ b/src/gpu/SkGpuDevice.h
@@ -85,7 +85,7 @@ public:
SkImageInfo imageInfo() const override {
SkColorType colorType;
- if (!GrPixelConfigToColorType(fRenderTarget->config(), &colorType)) {
+ if (!GrPixelConfigToColorType(fDrawContext->config(), &colorType)) {
colorType = kUnknown_SkColorType;
}
return SkImageInfo::Make(fSize.fWidth, fSize.fHeight, colorType,
@@ -158,9 +158,8 @@ protected:
bool onShouldDisableLCD(const SkPaint&) const final;
private:
- // We want these unreffed in DrawContext, RenderTarget, GrContext order.
+ // We want these unreffed in DrawContext, GrContext order.
SkAutoTUnref<GrContext> fContext;
- sk_sp<GrRenderTarget> fRenderTarget;
sk_sp<GrDrawContext> fDrawContext;
SkIPoint fClipOrigin;
« no previous file with comments | « src/gpu/GrDrawContextPriv.h ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698