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

Unified Diff: cc/blink/web_nine_patch_layer_impl.cc

Issue 595213002: Cleanup WebNinePatchLayerImpl by removing setBitmap(SkBitmap, const WebRect&) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « cc/blink/web_nine_patch_layer_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/blink/web_nine_patch_layer_impl.cc
diff --git a/cc/blink/web_nine_patch_layer_impl.cc b/cc/blink/web_nine_patch_layer_impl.cc
index 65e6fdd071e73f1ea6ed588733e037fa0cc7161b..094349182fa52c98784b34de9aba6a70a1eb9d34 100644
--- a/cc/blink/web_nine_patch_layer_impl.cc
+++ b/cc/blink/web_nine_patch_layer_impl.cc
@@ -24,16 +24,6 @@ blink::WebLayer* WebNinePatchLayerImpl::layer() {
return layer_.get();
}
-void WebNinePatchLayerImpl::setBitmap(SkBitmap bitmap,
- const blink::WebRect& aperture) {
- setBitmap(bitmap);
- setAperture(aperture);
- setBorder(blink::WebRect(aperture.x,
- aperture.y,
- bitmap.width() - aperture.width,
- bitmap.height() - aperture.height));
-}
-
void WebNinePatchLayerImpl::setBitmap(const SkBitmap& bitmap) {
cc::NinePatchLayer* nine_patch =
static_cast<cc::NinePatchLayer*>(layer_->layer());
« no previous file with comments | « cc/blink/web_nine_patch_layer_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698