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

Unified Diff: Source/core/platform/graphics/GraphicsLayer.h

Issue 75113003: Refactor GraphicsLayer::setContentsToImage(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month 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: Source/core/platform/graphics/GraphicsLayer.h
diff --git a/Source/core/platform/graphics/GraphicsLayer.h b/Source/core/platform/graphics/GraphicsLayer.h
index b2fb1ad1392b0e937cd20ce4fd25847d9c74039d..a6c41bcf091ed4480410640e55a04e3e62155069 100644
--- a/Source/core/platform/graphics/GraphicsLayer.h
+++ b/Source/core/platform/graphics/GraphicsLayer.h
@@ -81,14 +81,6 @@ protected:
class GraphicsLayer : public GraphicsContextPainter, public blink::WebAnimationDelegate, public blink::WebLayerScrollClient, public blink::WebLayerClient {
WTF_MAKE_NONCOPYABLE(GraphicsLayer); WTF_MAKE_FAST_ALLOCATED;
public:
- enum ContentsLayerPurpose {
- NoContentsLayer = 0,
- ContentsLayerForImage,
- ContentsLayerForNinePatch,
- ContentsLayerForVideo,
- ContentsLayerForCanvas,
- };
-
static PassOwnPtr<GraphicsLayer> create(GraphicsLayerFactory*, GraphicsLayerClient*);
virtual ~GraphicsLayer();
@@ -342,7 +334,7 @@ private:
void updateLayerIsDrawable();
void updateContentsRect();
- void setContentsTo(ContentsLayerPurpose, blink::WebLayer*);
+ void setContentsTo(blink::WebLayer*);
void setupContentsLayer(blink::WebLayer*);
void clearContentsLayerIfUnregistered();
blink::WebLayer* contentsLayerIfRegistered();
@@ -409,8 +401,6 @@ private:
OwnPtr<OpaqueRectTrackingContentLayerDelegate> m_opaqueRectTrackingContentLayerDelegate;
- ContentsLayerPurpose m_contentsLayerPurpose;
-
ScrollableArea* m_scrollableArea;
blink::WebCompositingReasons m_compositingReasons;
};
« no previous file with comments | « no previous file | Source/core/platform/graphics/GraphicsLayer.cpp » ('j') | Source/core/platform/graphics/GraphicsLayer.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698