electron/spec
Julien Isorce 9b29befdc8 feat: disable fetching thumbnails if thumbnailSize is 0 (#14906)
Capturing window thmubnails is expensive as it actually uses the
window capturer and it records one full frame per window and then
downscale to the default size 150x150. When only interested in the
window names or the app icons we do not need all of this.

Underlying change is merged in chromium72 so this patch only modifies
the doc, see:
  https://chromium.googlesource.com/chromium/src.git/+log/72.0.3626.52/chrome/browser/media/webrtc/native_desktop_media_list.cc

Example: desktopCapturer.getSources({thumbnailSize: {width: 0, height: 0}}, ...)

Also added a unit test in spec/api-desktop-capturer-spec.js that verifies
that the returned thumbails are of type NativeImage and empty,
when the user disable fetching thumbnails.

notes: Can disable fetching the thumbnails for the DesktopCapturer.

https://github.com/electron/electron/issues/14872
2019-02-13 10:27:42 -08:00
..
configs ci: run more Chromium unit tests (#15363) 2018-10-25 14:28:50 -04:00
fixtures feat: add chrome.runtime.getManifest (#16891) 2019-02-13 07:16:12 -10:00
static fix: update docs for protocol API (#16601) 2019-01-30 12:54:18 -08:00
.eslintrc chore: replace standard with eslint-config-standard and add custom rules (#14636) 2018-09-16 03:51:23 +10:00
api-app-spec.js feat: promisify app.dock.show() (#16904) 2019-02-12 21:06:33 -08:00
api-auto-updater-spec.js chore: update to standard 12 2018-09-14 14:57:01 +10:00
api-browser-view-spec.js fix: shutdown after message loop is ready (#16671) 2019-02-01 10:21:49 -05:00
api-browser-window-affinity-spec.js test: promisify a bunch of tests (#16051) 2018-12-18 23:44:03 -07:00
api-browser-window-spec.js chore: fix "creates offscreen window with correct size" spec on Mac with Retina display (#16867) 2019-02-11 10:35:46 -08:00
api-callbacks-registry-spec.js chore: update to standard 12 2018-09-14 14:57:01 +10:00
api-clipboard-spec.js chore: update to standard 12 2018-09-14 14:57:01 +10:00
api-content-tracing-spec.js feat: promisify contentTracing recording APIs (#16584) 2019-01-30 18:53:55 -08:00
api-crash-reporter-spec.js chore: make "nodeIntegration" and "webviewTag" default to false (#16235) 2019-01-07 22:19:27 +03:00
api-debugger-spec.js feat: promisify debugger.sendCommand() (#16861) 2019-02-13 07:23:53 -10:00
api-deprecations-spec.js chore: add standalone function deprecation helper (#16782) 2019-02-08 09:50:11 -08:00
api-desktop-capturer-spec.js feat: disable fetching thumbnails if thumbnailSize is 0 (#14906) 2019-02-13 10:27:42 -08:00
api-dialog-spec.js chore: update to standard 12 2018-09-14 14:57:01 +10:00
api-global-shortcut-spec.js feat: allow registering multiple shortcuts (#15542) 2018-11-07 09:40:38 -08:00
api-in-app-purchase-spec.js chore: update to standard 12 2018-09-14 14:57:01 +10:00
api-ipc-main-spec.js chore: make "nodeIntegration" and "webviewTag" default to false (#16235) 2019-01-07 22:19:27 +03:00
api-ipc-renderer-spec.js fix: emit IPC event in correct context if isolation and sandbox enabled (#16352) 2019-01-12 14:19:20 +01:00
api-menu-item-spec.js fix: windowmenu did not show the window list on macOS (#16387) 2019-01-14 17:27:52 +01:00
api-menu-spec.js feat: allow Menu.buildFromTemplate() to accept MenuItems (#16697) 2019-02-06 10:04:40 -08:00
api-native-image-spec.js chore: update to standard 12 2018-09-14 14:57:01 +10:00
api-net-log-spec.js chore: re-enable failing netlog spec (#15484) 2018-10-30 17:45:05 -05:00
api-net-spec.js feat: promisify cookies api (#16464) 2019-01-25 12:11:35 -06:00
api-notification-dbus-spec.js chore: make "nodeIntegration" and "webviewTag" default to false (#16235) 2019-01-07 22:19:27 +03:00
api-notification-spec.js chore: update to standard 12 2018-09-14 14:57:01 +10:00
api-power-monitor-spec.js fix: power observer dbus crash (#15030) 2018-10-09 00:32:19 -05:00
api-power-save-blocker-spec.js chore: update to standard 12 2018-09-14 14:57:01 +10:00
api-process-spec.js feat: Implement process.getProcessMemoryInfo to get the process memory usage (#14847) 2018-11-28 17:57:53 +09:00
api-protocol-spec.js feat: move webFrame scheme privilege methods to main process (#16416) 2019-01-29 16:11:01 +09:00
api-remote-spec.js feat: split openExternal into sync and async (#16176) 2019-01-14 20:35:21 -08:00
api-screen-spec.js feat: add new components to Display structure (#16870) 2019-02-12 05:34:42 -10:00
api-session-spec.js feat: move webFrame scheme privilege methods to main process (#16416) 2019-01-29 16:11:01 +09:00
api-shell-spec.js feat: split openExternal into sync and async (#16176) 2019-01-14 20:35:21 -08:00
api-subframe-spec.js feat: preloads and nodeIntegration in iframes (#16425) 2019-01-22 11:24:46 -08:00
api-system-preferences-spec.js refactor: add prefer-const to .eslintrc + fix errors (#14880) 2018-10-02 11:56:31 +10:00
api-touch-bar-spec.js chore: update to standard 12 2018-09-14 14:57:01 +10:00
api-tray-spec.js chore: update to standard 12 2018-09-14 14:57:01 +10:00
api-view-spec.js chore: update to standard 12 2018-09-14 14:57:01 +10:00
api-web-contents-spec.js feat: promisify webContents.printToPDF() (#16795) 2019-02-11 09:20:04 -10:00
api-web-contents-view-spec.js fix: shutdown after message loop is ready (#16671) 2019-02-01 10:21:49 -05:00
api-web-frame-spec.js fix: remove memory leak when using webFrame and spell checker (#16770) 2019-02-08 13:38:31 -08:00
api-web-request-spec.js spec: fix headers tests to match APIs 2018-09-14 17:05:26 +10:00
asar-spec.js build: fix the build with enable_run_as_node disabled (#15711) 2019-01-11 08:02:06 -08:00
assert-helpers.js spec: fix final node and chromium specs after assert change 2018-09-14 18:32:17 +10:00
BUILD.gn ci: run unittests on clean Chromium (#15125) 2018-10-22 16:12:19 -04:00
chrome-api-spec.js feat: add chrome.runtime.getManifest (#16891) 2019-02-13 07:16:12 -10:00
chromium-spec.js feat: promisify debugger.sendCommand() (#16861) 2019-02-13 07:23:53 -10:00
events-helpers.js feat: preloads and nodeIntegration in iframes (#16425) 2019-01-22 11:24:46 -08:00
internal-spec.js fix: make feature strings more robust to whitespace (#15602) 2018-11-06 15:52:06 -08:00
modules-spec.js feat: Upgrade to Chromium 71.0.3578.98 (#15966) 2019-01-11 17:00:43 -08:00
node-spec.js fix: backport patch to sync exposed crypto (#16822) 2019-02-12 11:57:11 -08:00
package-lock.json chore: bump spec dependencies (#16872) 2019-02-11 09:12:13 -10:00
package.json chore: bump spec dependencies (#16872) 2019-02-11 09:12:13 -10:00
security-warnings-spec.js chore: make "nodeIntegration" and "webviewTag" default to false (#16235) 2019-01-07 22:19:27 +03:00
version-bump-spec.js ci: make macOS CI faster (#16766) 2019-02-06 13:16:11 -08:00
webview-spec.js feat: promisify webContents.printToPDF() (#16795) 2019-02-11 09:20:04 -10:00
window-helpers.js chore: add helper to wait for a window to load in a remote-safe way (#16837) 2019-02-08 12:26:03 -08:00