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

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

Issue 2510583004: Early terminate WebGL markContextChanged calls when appropriate (Closed)
Patch Set: even better 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
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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // the resolved color buffer bound to GL_READ_FRAMEBUFFER and 155 // the resolved color buffer bound to GL_READ_FRAMEBUFFER and
156 // GL_DRAW_FRAMEBUFFER. 156 // GL_DRAW_FRAMEBUFFER.
157 void resolveAndBindForReadAndDraw(); 157 void resolveAndBindForReadAndDraw();
158 158
159 bool multisample() const; 159 bool multisample() const;
160 160
161 bool discardFramebufferSupported() const { 161 bool discardFramebufferSupported() const {
162 return m_discardFramebufferSupported; 162 return m_discardFramebufferSupported;
163 } 163 }
164 164
165 void markContentsChanged(); 165 // Returns false if the contents had previously been marked as changed and
166 // have not yet been committed.
167 bool markContentsChanged();
166 void setBufferClearNeeded(bool); 168 void setBufferClearNeeded(bool);
167 bool bufferClearNeeded() const; 169 bool bufferClearNeeded() const;
168 void setIsHidden(bool); 170 void setIsHidden(bool);
169 void setFilterQuality(SkFilterQuality); 171 void setFilterQuality(SkFilterQuality);
170 172
171 // Whether the target for draw operations has format GL_RGBA, but is 173 // Whether the target for draw operations has format GL_RGBA, but is
172 // emulating format GL_RGB. When the target's storage is first 174 // emulating format GL_RGB. When the target's storage is first
173 // allocated, its alpha channel must be cleared to 1. All future drawing 175 // allocated, its alpha channel must be cleared to 1. All future drawing
174 // operations must use a color mask with alpha=GL_FALSE. 176 // operations must use a color mask with alpha=GL_FALSE.
175 bool requiresAlphaChannelToBePreserved(); 177 bool requiresAlphaChannelToBePreserved();
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 // RuntimeEnabledFeatures::webGLImageChromiumEnabled() call with 516 // RuntimeEnabledFeatures::webGLImageChromiumEnabled() call with
515 // shouldUseChromiumImage() calls, and set m_chromiumImageUsage to 517 // shouldUseChromiumImage() calls, and set m_chromiumImageUsage to
516 // DisallowChromiumImage in the case of OffscreenCanvas. 518 // DisallowChromiumImage in the case of OffscreenCanvas.
517 ChromiumImageUsage m_chromiumImageUsage; 519 ChromiumImageUsage m_chromiumImageUsage;
518 bool shouldUseChromiumImage(); 520 bool shouldUseChromiumImage();
519 }; 521 };
520 522
521 } // namespace blink 523 } // namespace blink
522 524
523 #endif // DrawingBuffer_h 525 #endif // DrawingBuffer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698