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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp

Issue 2653933003: Make stream captures work on canvases that are not in the DOM. (Closed)
Patch Set: Created 3 years, 11 months 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp b/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
index fdd7148c33ab29f8861c9ce4b49cb6db24adf40d..330713c5a0b03f4cb0c35ca1868e115a9c6927c7 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
@@ -142,18 +142,12 @@ bool ImageBuffer::isSurfaceValid() const {
return m_surface->isValid();
}
-bool ImageBuffer::isDirty() {
- return m_client ? m_client->isDirty() : false;
+void ImageBuffer::finalizeFrame() {
+ m_surface->finalizeFrame();
}
-void ImageBuffer::didFinalizeFrame() {
- if (m_client)
- m_client->didFinalizeFrame();
-}
-
-void ImageBuffer::finalizeFrame(const FloatRect& dirtyRect) {
- m_surface->finalizeFrame(dirtyRect);
- didFinalizeFrame();
+void ImageBuffer::doPaintInvalidation(const FloatRect& dirtyRect) {
+ m_surface->doPaintInvalidation(dirtyRect);
}
bool ImageBuffer::restoreSurface() const {

Powered by Google App Engine
This is Rietveld 408576698