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

Unified Diff: third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp

Issue 1632263002: Calculate and track display item opaqueness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix print output and add some commentary Created 4 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/compositing/PaintArtifactCompositor.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp b/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp
index 992380818bb5e7d774f02d81deed8983227039ce..9a8eb8d54119d933eea3f8e3abcc85a7ad06c576 100644
--- a/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp
+++ b/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp
@@ -140,6 +140,8 @@ void PaintArtifactCompositor::update(const PaintArtifact& paintArtifact)
layer->SetBounds(combinedBounds.size());
layer->SetTransform(transformToRoot(paintChunk.properties.transform.get()));
layer->SetIsDrawable(true);
+ if (paintChunk.knownToBeOpaque)
+ layer->SetContentsOpaque(true);
layer->SetNeedsDisplay();
m_contentLayerClients.append(contentLayerClient.release());

Powered by Google App Engine
This is Rietveld 408576698