ipc/ipdl/msgtype-components
author Bas Schouten <bschouten@mozilla.com>
Tue, 26 Feb 2019 08:46:08 +0100
changeset 513319 46f0f4418eddc69b08f223b7766ef55725df3920
parent 507243 0bb1f2417265f9c9fbcf1a07f553ea08ad7308d5
permissions -rw-r--r--
Bug 1526045 - Part 2: Verify all DrawTargets created through CreateOffscreenContentDrawTarget. r=rhunt a=lizzard Preferrably CreateOffscreenContentDrawTarget would create Capture DrawTargets when we intend to use OMTP. This is not the case at the moment though and changing this would likely introduce more unforseen issues. For now all of these calls basically mean a DrawTarget will be used on the main thread and we should use a no-op ClearRect to ensure that the DrawTarget is actually initialized. Since IsValid for the moment won't do this for DrawTargetD2D. (See bug 1521368)

#!/usr/bin/python
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

from __future__ import print_function

import sys

msgid = int(sys.argv[1])
protocol = (msgid >> 16)
msg = (msgid - (protocol << 16))

print('protocol', protocol, 'message', msg)