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

Unified Diff: cc/blink/web_nine_patch_layer_impl.cc

Issue 597553002: [chromium] Pass SkBitmap by reference in WebNinePatchLayer::setBitmap and refactor (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 6b3eacf17c9baeba7c6c3d42a8906b3cffa29d03..65e6fdd071e73f1ea6ed588733e037fa0cc7161b 100644
--- a/cc/blink/web_nine_patch_layer_impl.cc
+++ b/cc/blink/web_nine_patch_layer_impl.cc
@@ -34,7 +34,7 @@ void WebNinePatchLayerImpl::setBitmap(SkBitmap bitmap,
bitmap.height() - aperture.height));
}
-void WebNinePatchLayerImpl::setBitmap(SkBitmap bitmap) {
+void WebNinePatchLayerImpl::setBitmap(const SkBitmap& bitmap) {
cc::NinePatchLayer* nine_patch =
static_cast<cc::NinePatchLayer*>(layer_->layer());
nine_patch->SetBitmap(bitmap);
@@ -52,10 +52,4 @@ void WebNinePatchLayerImpl::setBorder(const blink::WebRect& border) {
nine_patch->SetBorder(gfx::Rect(border));
}
-void WebNinePatchLayerImpl::setFillCenter(bool fill_center) {
- cc::NinePatchLayer* nine_patch =
- static_cast<cc::NinePatchLayer*>(layer_->layer());
- nine_patch->SetFillCenter(fill_center);
-}
-
} // namespace cc_blink
« 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