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

Unified Diff: sky/engine/platform/graphics/GraphicsLayer.cpp

Issue 685983002: Remove Nine Patch layers. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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 | « sky/engine/platform/graphics/GraphicsLayer.h ('k') | sky/engine/public/platform/WebCompositorSupport.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/platform/graphics/GraphicsLayer.cpp
diff --git a/sky/engine/platform/graphics/GraphicsLayer.cpp b/sky/engine/platform/graphics/GraphicsLayer.cpp
index 424586ac3ea3bc7f3932896ee114b32c74a1f447..6bf8ddd6646e5c7e67d986d75001078c310720d4 100644
--- a/sky/engine/platform/graphics/GraphicsLayer.cpp
+++ b/sky/engine/platform/graphics/GraphicsLayer.cpp
@@ -906,22 +906,6 @@ void GraphicsLayer::setContentsToImage(Image* image)
setContentsTo(m_imageLayer ? m_imageLayer->layer() : 0);
}
-void GraphicsLayer::setContentsToNinePatch(Image* image, const IntRect& aperture)
-{
- if (m_ninePatchLayer) {
- unregisterContentsLayer(m_ninePatchLayer->layer());
- m_ninePatchLayer.clear();
- }
- RefPtr<NativeImageSkia> nativeImage = image ? image->nativeImageForCurrentFrame() : nullptr;
- if (nativeImage) {
- m_ninePatchLayer = adoptPtr(Platform::current()->compositorSupport()->createNinePatchLayer());
- m_ninePatchLayer->setBitmap(nativeImage->bitmap(), aperture);
- m_ninePatchLayer->layer()->setOpaque(image->currentFrameKnownToBeOpaque());
- registerContentsLayer(m_ninePatchLayer->layer());
- }
- setContentsTo(m_ninePatchLayer ? m_ninePatchLayer->layer() : 0);
-}
-
bool GraphicsLayer::addAnimation(PassOwnPtr<WebCompositorAnimation> popAnimation)
{
OwnPtr<WebCompositorAnimation> animation(popAnimation);
« no previous file with comments | « sky/engine/platform/graphics/GraphicsLayer.h ('k') | sky/engine/public/platform/WebCompositorSupport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698