summaryrefslogtreecommitdiffstats
path: root/base/gfx
diff options
context:
space:
mode:
authorericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-18 16:00:38 +0000
committerericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-18 16:00:38 +0000
commitd324ab33283100c0800809b394cbde3dd1dcd801 (patch)
treeda83b2b01f7346790f1cf426cf7f252fa6d30089 /base/gfx
parent7cb98a23d0be29c2b5ceafa6f9e4b1d8e98cd282 (diff)
downloadchromium_src-d324ab33283100c0800809b394cbde3dd1dcd801.zip
chromium_src-d324ab33283100c0800809b394cbde3dd1dcd801.tar.gz
chromium_src-d324ab33283100c0800809b394cbde3dd1dcd801.tar.bz2
Cleanup some comment typos.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@984 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/gfx')
-rw-r--r--base/gfx/convolver.cc4
-rw-r--r--base/gfx/font_utils.h2
-rw-r--r--base/gfx/platform_canvas_unittest.cc2
-rw-r--r--base/gfx/platform_canvas_win.h2
4 files changed, 5 insertions, 5 deletions
diff --git a/base/gfx/convolver.cc b/base/gfx/convolver.cc
index 1bf89c3..cac487d 100644
--- a/base/gfx/convolver.cc
+++ b/base/gfx/convolver.cc
@@ -104,7 +104,7 @@ class CircularRowBuffer {
for (int i = 0; i < num_rows_; i++) {
row_addresses_[i] = &buffer_[cur_row * row_byte_width_];
- // Advance to the next row, wrapping if nexessary.
+ // Advance to the next row, wrapping if necessary.
cur_row++;
if (cur_row == num_rows_)
cur_row = 0;
@@ -239,7 +239,7 @@ void ConvolveVertically(const int16* filter_values,
else
out_row[byte_offset + 3] = alpha;
} else {
- // No alpha channel, the image is opqaue.
+ // No alpha channel, the image is opaque.
out_row[byte_offset + 3] = 0xff;
}
}
diff --git a/base/gfx/font_utils.h b/base/gfx/font_utils.h
index 2e8a6fc..6945c0d 100644
--- a/base/gfx/font_utils.h
+++ b/base/gfx/font_utils.h
@@ -55,7 +55,7 @@ enum GenericFamilyType {
};
// Return a font family that supports a script and belongs to |generic| font family.
-// It can retun NULL and a caller has to implement its own fallback.
+// It can return NULL and a caller has to implement its own fallback.
const wchar_t* GetFontFamilyForScript(UScriptCode script,
GenericFamilyType generic);
diff --git a/base/gfx/platform_canvas_unittest.cc b/base/gfx/platform_canvas_unittest.cc
index 9b0a0d3..7ba4a8f 100644
--- a/base/gfx/platform_canvas_unittest.cc
+++ b/base/gfx/platform_canvas_unittest.cc
@@ -210,7 +210,7 @@ TEST(PlatformCanvasWin, GDILayer) {
}
EXPECT_TRUE(VerifyBlackSquare(canvas, kInnerX, kInnerY, kInnerW, kInnerH));
- // Add a clip on the layer and fill to make make sure clip is correct.
+ // Add a clip on the layer and fill to make sure clip is correct.
canvas.drawColor(SK_ColorWHITE);
{
LayerSaver layer(canvas, kLayerX, kLayerY, kLayerW, kLayerH);
diff --git a/base/gfx/platform_canvas_win.h b/base/gfx/platform_canvas_win.h
index ee87460..f8944d0 100644
--- a/base/gfx/platform_canvas_win.h
+++ b/base/gfx/platform_canvas_win.h
@@ -43,7 +43,7 @@ namespace gfx {
class PlatformCanvasWin : public SkCanvas {
public:
// Set is_opaque if you are going to erase the bitmap and not use
- // tranparency: this will enable some optimizations. The shared_section
+ // transparency: this will enable some optimizations. The shared_section
// parameter is passed to gfx::PlatformDevice::create. See it for details.
//
// If you use the version with no arguments, you MUST call initialize()