summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-17 18:05:42 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-17 18:05:42 +0000
commitcc854e87cd67d488da2dc066ad743a12c2b108c6 (patch)
tree6dd39a9a7b1d71ffed07842d5247e5ece297277d /app
parent9cd458d48d4ed44370505d533e8393f01089d0f2 (diff)
downloadchromium_src-cc854e87cd67d488da2dc066ad743a12c2b108c6.zip
chromium_src-cc854e87cd67d488da2dc066ad743a12c2b108c6.tar.gz
chromium_src-cc854e87cd67d488da2dc066ad743a12c2b108c6.tar.bz2
A canvas_paint for OS X.
Makes it possible to use skia to paint something into a bitmap and then blit that bitmap to screen. I need this so that I can call download_util::PaintDownloadProgress(), which needs an SkCanvas. To be used like this: { gfx::CanvasPaint canvas(myRect); canvas.set_composite_alpha(true); download_util::PaintDownloadprogres(&canvas, ...); } BUG=18902 TEST=none Review URL: http://codereview.chromium.org/172046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23551 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app')
-rw-r--r--app/gfx/canvas_paint.h2
-rw-r--r--app/resource_bundle.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/app/gfx/canvas_paint.h b/app/gfx/canvas_paint.h
index d3a71f8..aa253b9 100644
--- a/app/gfx/canvas_paint.h
+++ b/app/gfx/canvas_paint.h
@@ -13,9 +13,7 @@
namespace gfx {
-#if defined(OS_WIN) || defined(OS_LINUX)
typedef skia::CanvasPaintT<Canvas> CanvasPaint;
-#endif
} // namespace gfx
diff --git a/app/resource_bundle.h b/app/resource_bundle.h
index 8d0b29a..bba8560 100644
--- a/app/resource_bundle.h
+++ b/app/resource_bundle.h
@@ -67,7 +67,7 @@ class ResourceBundle {
void LoadThemeResources();
// Gets the bitmap with the specified resource_id, first by looking into the
- // theme data, than in the current module data if applicable.
+ // theme data, then in the current module data if applicable.
// Returns a pointer to a shared instance of the SkBitmap. This shared bitmap
// is owned by the resource bundle and should not be freed.
//