www/chromium:

- install libpdf.so to enable the built-in PDF viewer [1]
- show memory usage of browser, GPU, individual plugins, and individual tabs
  in chrome://memory-redirect [2]
- bump PORTREVISION

Submitted by:	Imre Vadász via GitHub [1,2]
MFH:		2015Q1
This commit is contained in:
Rene Ladan 2015-01-11 13:47:11 +00:00
parent fa6a74a505
commit 5e88ecfcc8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=376780
3 changed files with 27 additions and 1 deletions

View File

@ -4,7 +4,7 @@
#TODO bz@ : if you do undestand the gyp stuff, third_party/widevine/cdm/widevine_cdm.gyp talks about it (plz install libwidevinecdm.so)
PORTNAME= chromium
PORTVERSION= 39.0.2171.95
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= www
MASTER_SITES= http://commondatastorage.googleapis.com/chromium-browser-official/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
@ -360,6 +360,8 @@ do-install:
${STAGEDIR}${DATADIR}
${INSTALL_LIB} ${WRKSRC}/out/${BUILDTYPE}/libffmpegsumo.so \
${STAGEDIR}${DATADIR}
${INSTALL_LIB} ${WRKSRC}/out/${BUILDTYPE}/libpdf.so \
${STAGEDIR}${DATADIR}
cd ${WRKSRC}/out/${BUILDTYPE} && \
${COPYTREE_SHARE} "locales resources" ${STAGEDIR}${DATADIR}
@${MKDIR} ${STAGEDIR}${DESKTOPDIR}

View File

@ -11,3 +11,26 @@
#include "base/logging.h"
#include "base/strings/string_util.h"
@@ -68,19 +72,13 @@
for (; index_of_kinfo_proc_ < kinfo_procs_.size(); ++index_of_kinfo_proc_) {
size_t length;
struct kinfo_proc kinfo = kinfo_procs_[index_of_kinfo_proc_];
- int mib[] = { CTL_KERN, KERN_PROC_ARGS, kinfo.ki_pid };
+ int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_ARGS, kinfo.ki_pid };
if ((kinfo.ki_pid > 0) && (kinfo.ki_stat == SZOMB))
continue;
- length = 0;
- if (sysctl(mib, arraysize(mib), NULL, &length, NULL, 0) < 0) {
- LOG(ERROR) << "failed to figure out the buffer size for a command line";
- continue;
- }
-
- data.resize(length);
-
+ data.resize(ARG_MAX);
+ length = ARG_MAX;
if (sysctl(mib, arraysize(mib), &data[0], &length, NULL, 0) < 0) {
LOG(ERROR) << "failed to fetch a commandline";
continue;

View File

@ -7,6 +7,7 @@ share/applications/chromium-browser.desktop
%%DATADIR%%/content_resources.pak
%%DATADIR%%/keyboard_resources.pak
%%DATADIR%%/libffmpegsumo.so
%%DATADIR%%/libpdf.so
%%DATADIR%%/locales/am.pak
%%DATADIR%%/locales/ar.pak
%%DATADIR%%/locales/bg.pak