From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: image-size Date: Fri, 21 Jun 2013 11:27:27 +0300 Message-ID: <838v23ools.fsf@gnu.org> References: <837ghopy8a.fsf@gnu.org> <83zjukog7h.fsf@gnu.org> <83txksodgv.fsf@gnu.org> <83r4fwocqd.fsf@gnu.org> <83ppvgoaw9.fsf@gnu.org> <83mwqko9ge.fsf@gnu.org> <83k3loo66g.fsf@gnu.org> <2D9A8A78-829E-4AEC-BA3E-9409A1457053@swipnet.se> <83ehbwng5m.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1371803253 12316 80.91.229.3 (21 Jun 2013 08:27:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Jun 2013 08:27:33 +0000 (UTC) Cc: larsi@gnus.org, emacs-devel@gnu.org To: Jan =?iso-8859-1?Q?Dj=E4rv?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 21 10:27:31 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Upwgt-000499-7d for ged-emacs-devel@m.gmane.org; Fri, 21 Jun 2013 10:27:31 +0200 Original-Received: from localhost ([::1]:48129 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Upwgs-0004oX-Rj for ged-emacs-devel@m.gmane.org; Fri, 21 Jun 2013 04:27:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37730) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Upwgl-0004oE-R2 for emacs-devel@gnu.org; Fri, 21 Jun 2013 04:27:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Upwgi-0005ko-4Y for emacs-devel@gnu.org; Fri, 21 Jun 2013 04:27:23 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:51119) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Upwgh-0005kX-T1 for emacs-devel@gnu.org; Fri, 21 Jun 2013 04:27:20 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0MOQ00G00I3A9600@a-mtaout23.012.net.il> for emacs-devel@gnu.org; Fri, 21 Jun 2013 11:27:16 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MOQ00G9RI5G5L50@a-mtaout23.012.net.il>; Fri, 21 Jun 2013 11:27:16 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.175 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:160811 Archived-At: > From: Jan Dj=E4rv > Date: Fri, 21 Jun 2013 09:34:31 +0200 > Cc: larsi@gnus.org, > emacs-devel@gnu.org >=20 > > Yes. Thus my suggestion to have a flag in the 'load' method that > > would cause it return right after computing the size. > >=20 >=20 > YAMAMOTO Mitsuharu writes: >=20 > > Right. And as I mentioned in (*), a possible way to solve this > > problem is to defer the creation of Pixmap (server side resource)= from > > XImage (client side resource) until the actual display happens (i= .e., > > at prepare_image_for_display rather than lookup_image), so as to = avoid > > unnecessary round trip of image data between the X11 server and > > client. >=20 > Only prepare_image_for_display have to set a different value for th= e suggested flag, as it does load if the image is not loaded yet. Right. prepare_image_for_display is called by the display engine whe= n it is about to display the image.