| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2010, Google Inc. All rights reserved. | 2 * Copyright (c) 2010, 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 // Track the currently active texture unit. Texture unit 0 is used as host f
or a scratch | 169 // Track the currently active texture unit. Texture unit 0 is used as host f
or a scratch |
| 170 // texture. | 170 // texture. |
| 171 void setActiveTextureUnit(GLint textureUnit) { m_activeTextureUnit = texture
Unit; } | 171 void setActiveTextureUnit(GLint textureUnit) { m_activeTextureUnit = texture
Unit; } |
| 172 | 172 |
| 173 bool multisample() const; | 173 bool multisample() const; |
| 174 | 174 |
| 175 GLuint framebuffer() const; | 175 GLuint framebuffer() const; |
| 176 | 176 |
| 177 bool discardFramebufferSupported() const { return m_discardFramebufferSuppor
ted; } | 177 bool discardFramebufferSupported() const { return m_discardFramebufferSuppor
ted; } |
| 178 | 178 |
| 179 void markContentsChanged(); | 179 // Returns false if the contents had previously been marked as changed and |
| 180 // have not yet been comitted. |
| 181 bool markContentsChanged(); |
| 180 void setBufferClearNeeded(bool); | 182 void setBufferClearNeeded(bool); |
| 181 bool bufferClearNeeded() const; | 183 bool bufferClearNeeded() const; |
| 182 void setIsHidden(bool); | 184 void setIsHidden(bool); |
| 183 void setFilterQuality(SkFilterQuality); | 185 void setFilterQuality(SkFilterQuality); |
| 184 | 186 |
| 185 // Whether the target for draw operations has format GL_RGBA, but is | 187 // Whether the target for draw operations has format GL_RGBA, but is |
| 186 // emulating format GL_RGB. When the target's storage is first | 188 // emulating format GL_RGB. When the target's storage is first |
| 187 // allocated, its alpha channel must be cleared to 1. All future drawing | 189 // allocated, its alpha channel must be cleared to 1. All future drawing |
| 188 // operations must use a color mask with alpha=GL_FALSE. | 190 // operations must use a color mask with alpha=GL_FALSE. |
| 189 bool requiresAlphaChannelToBePreserved(); | 191 bool requiresAlphaChannelToBePreserved(); |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 // used to resize the Canvas. | 447 // used to resize the Canvas. |
| 446 SkBitmap m_resizingBitmap; | 448 SkBitmap m_resizingBitmap; |
| 447 | 449 |
| 448 // Used to flip a bitmap vertically. | 450 // Used to flip a bitmap vertically. |
| 449 Vector<uint8_t> m_scanline; | 451 Vector<uint8_t> m_scanline; |
| 450 }; | 452 }; |
| 451 | 453 |
| 452 } // namespace blink | 454 } // namespace blink |
| 453 | 455 |
| 454 #endif // DrawingBuffer_h | 456 #endif // DrawingBuffer_h |
| OLD | NEW |