| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 TransparencyWin(); | 127 TransparencyWin(); |
| 128 ~TransparencyWin(); | 128 ~TransparencyWin(); |
| 129 | 129 |
| 130 // Initializes the members if you use the 0-argument constructor. Don't call | 130 // Initializes the members if you use the 0-argument constructor. Don't call |
| 131 // this if you use the multiple-argument constructor. | 131 // this if you use the multiple-argument constructor. |
| 132 void init(GraphicsContext* dest, | 132 void init(GraphicsContext* dest, |
| 133 LayerMode layerMode, | 133 LayerMode layerMode, |
| 134 TransformMode transformMode, | 134 TransformMode transformMode, |
| 135 const IntRect& region); | 135 const IntRect& region); |
| 136 | 136 |
| 137 // Combines the source and destination bitmaps using the given mode. |
| 138 void composite(); |
| 139 |
| 137 // Returns the context for drawing into, which may be the destination | 140 // Returns the context for drawing into, which may be the destination |
| 138 // context, or a temporary one. | 141 // context, or a temporary one. |
| 139 GraphicsContext* context() const { return m_drawContext; } | 142 GraphicsContext* context() const { return m_drawContext; } |
| 140 | 143 |
| 141 PlatformGraphicsContext* platformContext() const { return m_drawContext->pla
tformContext(); } | 144 PlatformGraphicsContext* platformContext() const { return m_drawContext->pla
tformContext(); } |
| 142 | 145 |
| 143 // When the mode is TextComposite, this sets the color that the text will | 146 // When the mode is TextComposite, this sets the color that the text will |
| 144 // get. See the enum above for more. | 147 // get. See the enum above for more. |
| 145 void setTextCompositeColor(Color color); | 148 void setTextCompositeColor(Color color); |
| 146 | 149 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 // If a buffer was too big to be cached, it will be created temporarily, and | 243 // If a buffer was too big to be cached, it will be created temporarily, and |
| 241 // this member tracks its scope to make sure it gets deleted. Always use | 244 // this member tracks its scope to make sure it gets deleted. Always use |
| 242 // m_layerBuffer, which will either point to this object, or the statically | 245 // m_layerBuffer, which will either point to this object, or the statically |
| 243 // cached one. Don't access directly. | 246 // cached one. Don't access directly. |
| 244 OwnPtr<OwnedBuffers> m_ownedBuffers; | 247 OwnPtr<OwnedBuffers> m_ownedBuffers; |
| 245 }; | 248 }; |
| 246 | 249 |
| 247 } // namespace WebCore | 250 } // namespace WebCore |
| 248 | 251 |
| 249 #endif // TransaprencyWin_h | 252 #endif // TransaprencyWin_h |
| OLD | NEW |