| 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 void setPixelPackAlignmentDirty() { m_pixelPackAlignmentDirty = true; } | 263 void setPixelPackAlignmentDirty() { m_pixelPackAlignmentDirty = true; } |
| 264 void setTextureBindingDirty() { m_textureBindingDirty = true; } | 264 void setTextureBindingDirty() { m_textureBindingDirty = true; } |
| 265 void setRenderbufferBindingDirty() { m_renderbufferBindingDirty = true; } | 265 void setRenderbufferBindingDirty() { m_renderbufferBindingDirty = true; } |
| 266 void setFramebufferBindingDirty() { m_framebufferBindingDirty = true; } | 266 void setFramebufferBindingDirty() { m_framebufferBindingDirty = true; } |
| 267 void setPixelUnpackBufferBindingDirty() { | 267 void setPixelUnpackBufferBindingDirty() { |
| 268 m_pixelUnpackBufferBindingDirty = true; | 268 m_pixelUnpackBufferBindingDirty = true; |
| 269 } | 269 } |
| 270 | 270 |
| 271 private: | 271 private: |
| 272 RefPtr<DrawingBuffer> m_drawingBuffer; | 272 RefPtr<DrawingBuffer> m_drawingBuffer; |
| 273 // The previous state restorer, in case restorers are nested. |
| 274 ScopedStateRestorer* m_previousStateRestorer = nullptr; |
| 273 bool m_clearStateDirty = false; | 275 bool m_clearStateDirty = false; |
| 274 bool m_pixelPackAlignmentDirty = false; | 276 bool m_pixelPackAlignmentDirty = false; |
| 275 bool m_textureBindingDirty = false; | 277 bool m_textureBindingDirty = false; |
| 276 bool m_renderbufferBindingDirty = false; | 278 bool m_renderbufferBindingDirty = false; |
| 277 bool m_framebufferBindingDirty = false; | 279 bool m_framebufferBindingDirty = false; |
| 278 bool m_pixelUnpackBufferBindingDirty = false; | 280 bool m_pixelUnpackBufferBindingDirty = false; |
| 279 }; | 281 }; |
| 280 | 282 |
| 281 // All parameters necessary to generate the texture for the ColorBuffer. | 283 // All parameters necessary to generate the texture for the ColorBuffer. |
| 282 struct ColorBufferParameters { | 284 struct ColorBufferParameters { |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 // RuntimeEnabledFeatures::webGLImageChromiumEnabled() call with | 513 // RuntimeEnabledFeatures::webGLImageChromiumEnabled() call with |
| 512 // shouldUseChromiumImage() calls, and set m_chromiumImageUsage to | 514 // shouldUseChromiumImage() calls, and set m_chromiumImageUsage to |
| 513 // DisallowChromiumImage in the case of OffscreenCanvas. | 515 // DisallowChromiumImage in the case of OffscreenCanvas. |
| 514 ChromiumImageUsage m_chromiumImageUsage; | 516 ChromiumImageUsage m_chromiumImageUsage; |
| 515 bool shouldUseChromiumImage(); | 517 bool shouldUseChromiumImage(); |
| 516 }; | 518 }; |
| 517 | 519 |
| 518 } // namespace blink | 520 } // namespace blink |
| 519 | 521 |
| 520 #endif // DrawingBuffer_h | 522 #endif // DrawingBuffer_h |
| OLD | NEW |