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

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

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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-icu.cc » ('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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 { 375 {
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 hb_blob_t *
386 hb_glib_blob_create (GBytes *gbytes)
387 {
388 gsize size = 0;
389 gconstpointer data = g_bytes_get_data (gbytes, &size);
390 return hb_blob_create ((const char *) data,
391 size,
392 HB_MEMORY_MODE_READONLY,
393 g_bytes_ref (gbytes),
394 (hb_destroy_func_t) g_bytes_unref);
395 }
OLDNEW
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-glib.h ('k') | third_party/harfbuzz-ng/src/hb-icu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698