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

Unified Diff: cc/blink/web_nine_patch_layer_impl.h

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 | « no previous file | cc/blink/web_nine_patch_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/blink/web_nine_patch_layer_impl.h
diff --git a/cc/blink/web_nine_patch_layer_impl.h b/cc/blink/web_nine_patch_layer_impl.h
index bfdb32a3147d0dd62410f69c70e5d28597210c8a..1f2e389cccf15b83b062d73ad91a5e8119f0071b 100644
--- a/cc/blink/web_nine_patch_layer_impl.h
+++ b/cc/blink/web_nine_patch_layer_impl.h
@@ -22,13 +22,12 @@ class WebNinePatchLayerImpl : public blink::WebNinePatchLayer {
// blink::WebNinePatchLayer implementation.
virtual blink::WebLayer* layer();
- // TODO(ccameron): Remove setBitmap(SkBitmap, blink::WebRect) in favor of
- // setBitmap(), setAperture(), and setBorder();
+ // TODO(vivekg): Remove setBitmap(SkBitmap, blink::WebRect) once blink side
+ // CL, http://crrev.com/594193002 lands
virtual void setBitmap(SkBitmap bitmap, const blink::WebRect& aperture);
- virtual void setBitmap(SkBitmap bitmap);
+ virtual void setBitmap(const SkBitmap& bitmap);
virtual void setAperture(const blink::WebRect& aperture);
virtual void setBorder(const blink::WebRect& border);
- virtual void setFillCenter(bool fill_center);
private:
scoped_ptr<WebLayerImpl> layer_;
« no previous file with comments | « no previous file | cc/blink/web_nine_patch_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698