Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(255)

Side by Side Diff: third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h

Issue 2453283002: Allow nested state restorers in DrawingBuffer (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698