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

Unified Diff: ui/gfx/canvas.h

Issue 560463004: Functions that return non-const internal data should not be const because it provides a loophole ar… (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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/canvas.h
diff --git a/ui/gfx/canvas.h b/ui/gfx/canvas.h
index f3d9486f9a6224cbb804aa2288ef56cecdbd5f46..c8fd2849bcdcb2f2c35ad838bc2bab60d40de638 100644
--- a/ui/gfx/canvas.h
+++ b/ui/gfx/canvas.h
@@ -421,8 +421,8 @@ class GFX_EXPORT Canvas {
const Rect& display_rect,
int flags);
- skia::PlatformCanvas* platform_canvas() const { return owned_canvas_.get(); }
- SkCanvas* sk_canvas() const { return canvas_; }
+ skia::PlatformCanvas* platform_canvas() { return owned_canvas_.get(); }
+ SkCanvas* sk_canvas() { return canvas_; }
float image_scale() const { return image_scale_; }
private:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698