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

Unified Diff: src/utils/SkDeferredCanvas.cpp

Issue 334993002: hide virtuals on device for width/height/isopaque (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrPictureUtils.cpp ('k') | src/utils/SkGatherPixelRefsAndRects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/SkDeferredCanvas.cpp
diff --git a/src/utils/SkDeferredCanvas.cpp b/src/utils/SkDeferredCanvas.cpp
index ea7d71e2529e412fa6d007b11613e7546d141dc4..641974b1ed1e3d1b3e7cb97184a68b169bc9b9f8 100644
--- a/src/utils/SkDeferredCanvas.cpp
+++ b/src/utils/SkDeferredCanvas.cpp
@@ -157,9 +157,6 @@ public:
void setMaxRecordingStorage(size_t);
void recordedDrawCommand();
- virtual int width() const SK_OVERRIDE;
- virtual int height() const SK_OVERRIDE;
- virtual bool isOpaque() const SK_OVERRIDE;
virtual SkImageInfo imageInfo() const SK_OVERRIDE;
virtual GrRenderTarget* accessRenderTarget() SK_OVERRIDE;
@@ -426,18 +423,6 @@ SkImage* SkDeferredDevice::newImageSnapshot() {
return fSurface ? fSurface->newImageSnapshot() : NULL;
}
-int SkDeferredDevice::width() const {
- return immediateDevice()->width();
-}
-
-int SkDeferredDevice::height() const {
- return immediateDevice()->height();
-}
-
-bool SkDeferredDevice::isOpaque() const {
- return immediateDevice()->isOpaque();
-}
-
SkImageInfo SkDeferredDevice::imageInfo() const {
return immediateDevice()->imageInfo();
}
« no previous file with comments | « src/gpu/GrPictureUtils.cpp ('k') | src/utils/SkGatherPixelRefsAndRects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698