Chromium Code Reviews| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 146 // Track the currently active texture unit. Texture unit 0 is used as host f or a scratch | 146 // Track the currently active texture unit. Texture unit 0 is used as host f or a scratch |
| 147 // texture. | 147 // texture. |
| 148 void setActiveTextureUnit(GLint textureUnit) { m_activeTextureUnit = texture Unit; } | 148 void setActiveTextureUnit(GLint textureUnit) { m_activeTextureUnit = texture Unit; } |
| 149 | 149 |
| 150 bool multisample() const; | 150 bool multisample() const; |
| 151 | 151 |
| 152 GLuint framebuffer() const; | 152 GLuint framebuffer() const; |
| 153 | 153 |
| 154 bool discardFramebufferSupported() const { return m_discardFramebufferSuppor ted; } | 154 bool discardFramebufferSupported() const { return m_discardFramebufferSuppor ted; } |
| 155 | 155 |
| 156 void markContentsChanged(); | 156 bool markContentsChanged(); |
|
Ken Russell (switch to Gerrit)
2016/05/16 19:05:24
Please document the return value.
| |
| 157 void setBufferClearNeeded(bool); | 157 void setBufferClearNeeded(bool); |
| 158 bool bufferClearNeeded() const; | 158 bool bufferClearNeeded() const; |
| 159 void setIsHidden(bool); | 159 void setIsHidden(bool); |
| 160 void setFilterQuality(SkFilterQuality); | 160 void setFilterQuality(SkFilterQuality); |
| 161 | 161 |
| 162 WebLayer* platformLayer(); | 162 WebLayer* platformLayer(); |
| 163 | 163 |
| 164 WebGraphicsContext3D* context(); | 164 WebGraphicsContext3D* context(); |
| 165 gpu::gles2::GLES2Interface* contextGL(); | 165 gpu::gles2::GLES2Interface* contextGL(); |
| 166 WebGraphicsContext3DProvider* contextProvider(); | 166 WebGraphicsContext3DProvider* contextProvider(); |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 376 // used to resize the Canvas. | 376 // used to resize the Canvas. |
| 377 SkBitmap m_resizingBitmap; | 377 SkBitmap m_resizingBitmap; |
| 378 | 378 |
| 379 // Used to flip a bitmap vertically. | 379 // Used to flip a bitmap vertically. |
| 380 Vector<uint8_t> m_scanline; | 380 Vector<uint8_t> m_scanline; |
| 381 }; | 381 }; |
| 382 | 382 |
| 383 } // namespace blink | 383 } // namespace blink |
| 384 | 384 |
| 385 #endif // DrawingBuffer_h | 385 #endif // DrawingBuffer_h |
| OLD | NEW |