equal
deleted
inserted
replaced
80 conforms to the interface specifications and contracts, you are free to write |
80 conforms to the interface specifications and contracts, you are free to write |
81 the adaptation as you see fit. </p> <p>The following is a class diagram of |
81 the adaptation as you see fit. </p> <p>The following is a class diagram of |
82 the interfaces. </p> <fig id="GUID-D23E912B-C752-5F20-A595-3F779B4E7C5D"> |
82 the interfaces. </p> <fig id="GUID-D23E912B-C752-5F20-A595-3F779B4E7C5D"> |
83 <title> Figure 1: The graphics resource adapter interfaces |
83 <title> Figure 1: The graphics resource adapter interfaces |
84 </title> |
84 </title> |
85 <image href="GUID-BFA254D4-5104-5B15-8035-2491B57D136D_d0e272739_href.png" placement="inline"/> |
85 <image href="GUID-BFA254D4-5104-5B15-8035-2491B57D136D_d0e278739_href.png" placement="inline"/> |
86 </fig> <p> <b>Driver adapter</b>. You must provide a concrete driver adapter |
86 </fig> <p> <b>Driver adapter</b>. You must provide a concrete driver adapter |
87 class that implements the <xref href="GUID-62D3F49B-E048-3C07-ABDC-2DB6CC268127.dita"><apiname>MSgDriverAdapter</apiname></xref> interface. This |
87 class that implements the <xref href="GUID-62D3F49B-E048-3C07-ABDC-2DB6CC268127.dita"><apiname>MSgDriverAdapter</apiname></xref> interface. This |
88 is a singleton class. A single instance of it is created for each process |
88 is a singleton class. A single instance of it is created for each process |
89 that uses the Graphics Resource API. The singleton is responsible for creating |
89 that uses the Graphics Resource API. The singleton is responsible for creating |
90 image adapter and image collection adapter objects. </p> <p> <b>Image adapter</b>. |
90 image adapter and image collection adapter objects. </p> <p> <b>Image adapter</b>. |
180 </ul> <p>The following diagram shows an image that is shared between two processes—one |
180 </ul> <p>The following diagram shows an image that is shared between two processes—one |
181 of which has two handles to the image and the other a single handle. When |
181 of which has two handles to the image and the other a single handle. When |
182 all of the handles to the image are closed, the image itself is destroyed. </p> <fig id="GUID-189A3A15-947A-5C39-9B84-630679944C30"> |
182 all of the handles to the image are closed, the image itself is destroyed. </p> <fig id="GUID-189A3A15-947A-5C39-9B84-630679944C30"> |
183 <title> Figure 2: Reference counting resources and adapter objects |
183 <title> Figure 2: Reference counting resources and adapter objects |
184 </title> |
184 </title> |
185 <image href="GUID-582B36BD-88B3-5B5B-8A20-058318E80D0B_d0e272975_href.png" placement="inline"/> |
185 <image href="GUID-582B36BD-88B3-5B5B-8A20-058318E80D0B_d0e278975_href.png" placement="inline"/> |
186 </fig> </section> |
186 </fig> </section> |
187 <section id="GUID-A254D2A4-AAF4-43CA-9C4F-DB41F5F2F13B"><title>Thread safety</title> <p>All |
187 <section id="GUID-A254D2A4-AAF4-43CA-9C4F-DB41F5F2F13B"><title>Thread safety</title> <p>All |
188 of the adapter objects can potentially be shared between all of the threads |
188 of the adapter objects can potentially be shared between all of the threads |
189 in the process. This means that they must all be thread safe. Normally you |
189 in the process. This means that they must all be thread safe. Normally you |
190 implement thread safety by using mutexes. The reference implementation handles |
190 implement thread safety by using mutexes. The reference implementation handles |