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

Unified Diff: webkit/plugins/ppapi/ppb_flash_impl_linux.cc

Issue 6282007: First pass at making the proxy handle multiple renderers. This associates the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 | « webkit/plugins/ppapi/ppb_flash_impl.cc ('k') | webkit/plugins/ppapi/ppb_font_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_flash_impl_linux.cc
===================================================================
--- webkit/plugins/ppapi/ppb_flash_impl_linux.cc (revision 71973)
+++ webkit/plugins/ppapi/ppb_flash_impl_linux.cc (working copy)
@@ -20,28 +20,28 @@
namespace webkit {
namespace ppapi {
-bool PPB_Flash_Impl::DrawGlyphs(PP_Instance,
- PP_Resource pp_image_data,
- const PP_FontDescription_Dev* font_desc,
- uint32_t color,
- PP_Point position,
- PP_Rect clip,
- const float transformation[3][3],
- uint32_t glyph_count,
- const uint16_t glyph_indices[],
- const PP_Point glyph_advances[]) {
+PP_Bool PPB_Flash_Impl::DrawGlyphs(PP_Instance,
+ PP_Resource pp_image_data,
+ const PP_FontDescription_Dev* font_desc,
+ uint32_t color,
+ PP_Point position,
+ PP_Rect clip,
+ const float transformation[3][3],
+ uint32_t glyph_count,
+ const uint16_t glyph_indices[],
+ const PP_Point glyph_advances[]) {
scoped_refptr<PPB_ImageData_Impl> image_resource(
Resource::GetAs<PPB_ImageData_Impl>(pp_image_data));
if (!image_resource.get())
- return false;
+ return PP_FALSE;
ImageDataAutoMapper mapper(image_resource);
if (!mapper.is_valid())
- return false;
+ return PP_FALSE;
// Set up the typeface.
scoped_refptr<StringVar> face_name(StringVar::FromPPVar(font_desc->face));
if (!face_name)
- return false;
+ return PP_FALSE;
int style = SkTypeface::kNormal;
if (font_desc->weight >= PP_FONTWEIGHT_BOLD)
style |= SkTypeface::kBold;
@@ -51,7 +51,7 @@
SkTypeface::CreateFromName(face_name->value().c_str(),
static_cast<SkTypeface::Style>(style));
if (!typeface)
- return false;
+ return PP_FALSE;
// Set up the canvas.
SkCanvas* canvas = image_resource->mapped_canvas();
@@ -105,7 +105,7 @@
canvas->drawPosText(glyph_indices, glyph_count * 2, sk_positions, paint);
canvas->restore();
- return true;
+ return PP_TRUE;
}
} // namespace ppapi
« no previous file with comments | « webkit/plugins/ppapi/ppb_flash_impl.cc ('k') | webkit/plugins/ppapi/ppb_font_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698