diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-08 23:04:24 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-08 23:04:24 +0000 |
commit | dc6365fe90434739578201721fa560a0e4274841 (patch) | |
tree | fb6890df51658ab70c84bf4a68b1d6642bb851ff | |
parent | 65fa1399cab981a3b8ddf96e3cbaa9a64b3efdd2 (diff) | |
download | chromium_src-dc6365fe90434739578201721fa560a0e4274841.zip chromium_src-dc6365fe90434739578201721fa560a0e4274841.tar.gz chromium_src-dc6365fe90434739578201721fa560a0e4274841.tar.bz2 |
Remove comments and const_cast that is no longer necessary with the latest Skia.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/262017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28470 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/autocomplete/autocomplete_edit_view_win.cc | 5 | ||||
-rw-r--r-- | chrome/browser/renderer_host/render_widget_host_view_win.cc | 5 |
2 files changed, 2 insertions, 8 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_edit_view_win.cc b/chrome/browser/autocomplete/autocomplete_edit_view_win.cc index 343574a..b3a7ecc 100644 --- a/chrome/browser/autocomplete/autocomplete_edit_view_win.cc +++ b/chrome/browser/autocomplete/autocomplete_edit_view_win.cc @@ -2102,10 +2102,7 @@ void AutocompleteEditViewWin::DrawSlashForInsecureScheme( // it to fully transparent so any antialiasing will look nice when painted // atop the edit. gfx::Canvas canvas(scheme_rect.Width(), scheme_rect.Height(), false); - // TODO (jcampan): This const_cast should not be necessary once the SKIA - // API has been changed to return a non-const bitmap. - (const_cast<SkBitmap&>(canvas.getDevice()->accessBitmap(true))). - eraseARGB(0, 0, 0, 0); + canvas.getDevice()->accessBitmap(true).eraseARGB(0, 0, 0, 0); // Calculate the start and end of the stroke, which are just the lower left // and upper right corners of the canvas, inset by the radius of the endcap diff --git a/chrome/browser/renderer_host/render_widget_host_view_win.cc b/chrome/browser/renderer_host/render_widget_host_view_win.cc index 65c4a0f..19b6db3 100644 --- a/chrome/browser/renderer_host/render_widget_host_view_win.cc +++ b/chrome/browser/renderer_host/render_widget_host_view_win.cc @@ -569,10 +569,7 @@ void RenderWidgetHostViewWin::DrawResizeCorner(const gfx::Rect& paint_rect, SkBitmap* bitmap = ResourceBundle::GetSharedInstance(). GetBitmapNamed(IDR_TEXTAREA_RESIZER); gfx::Canvas canvas(bitmap->width(), bitmap->height(), false); - // TODO(jcampan): This const_cast should not be necessary once the - // SKIA API has been changed to return a non-const bitmap. - const_cast<SkBitmap&>(canvas.getDevice()->accessBitmap(true)). - eraseARGB(0, 0, 0, 0); + canvas.getDevice()->accessBitmap(true).eraseARGB(0, 0, 0, 0); int x = resize_corner_rect.x() + resize_corner_rect.width() - bitmap->width(); bool rtl_dir = (l10n_util::GetTextDirection() == |