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

Side by Side Diff: third_party/harfbuzz-ng/src/hb-glib.cc

Issue 1580513002: Roll HarfBuzz to 1.1.3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fix Created 4 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 unified diff | Download patch
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-glib.h ('k') | third_party/harfbuzz-ng/src/hb-gobject-structs.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright © 2009 Red Hat, Inc. 2 * Copyright © 2009 Red Hat, Inc.
3 * Copyright © 2011 Google, Inc. 3 * Copyright © 2011 Google, Inc.
4 * 4 *
5 * This is part of HarfBuzz, a text shaping library. 5 * This is part of HarfBuzz, a text shaping library.
6 * 6 *
7 * Permission is hereby granted, without written agreement and without 7 * Permission is hereby granted, without written agreement and without
8 * license or royalty fees, to use, copy, modify, and distribute this 8 * license or royalty fees, to use, copy, modify, and distribute this
9 * software and its documentation for any purpose, provided that the 9 * software and its documentation for any purpose, provided that the
10 * above copyright notice and the following two paragraphs appear in 10 * above copyright notice and the following two paragraphs appear in
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 #define HB_UNICODE_FUNC_IMPLEMENT(name) hb_glib_unicode_##name, 376 #define HB_UNICODE_FUNC_IMPLEMENT(name) hb_glib_unicode_##name,
377 HB_UNICODE_FUNCS_IMPLEMENT_CALLBACKS 377 HB_UNICODE_FUNCS_IMPLEMENT_CALLBACKS
378 #undef HB_UNICODE_FUNC_IMPLEMENT 378 #undef HB_UNICODE_FUNC_IMPLEMENT
379 } 379 }
380 }; 380 };
381 381
382 return const_cast<hb_unicode_funcs_t *> (&_hb_glib_unicode_funcs); 382 return const_cast<hb_unicode_funcs_t *> (&_hb_glib_unicode_funcs);
383 } 383 }
384 384
385 /** 385 /**
386 * hb_glib_blob_create:
387 *
386 * Since: 0.9.38 388 * Since: 0.9.38
387 **/ 389 **/
388 hb_blob_t * 390 hb_blob_t *
389 hb_glib_blob_create (GBytes *gbytes) 391 hb_glib_blob_create (GBytes *gbytes)
390 { 392 {
391 gsize size = 0; 393 gsize size = 0;
392 gconstpointer data = g_bytes_get_data (gbytes, &size); 394 gconstpointer data = g_bytes_get_data (gbytes, &size);
393 return hb_blob_create ((const char *) data, 395 return hb_blob_create ((const char *) data,
394 size, 396 size,
395 HB_MEMORY_MODE_READONLY, 397 HB_MEMORY_MODE_READONLY,
396 g_bytes_ref (gbytes), 398 g_bytes_ref (gbytes),
397 (hb_destroy_func_t) g_bytes_unref); 399 (hb_destroy_func_t) g_bytes_unref);
398 } 400 }
OLDNEW
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-glib.h ('k') | third_party/harfbuzz-ng/src/hb-gobject-structs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698