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

Unified Diff: third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp

Issue 2597933002: Avoid to resolve CMAA for read and draw without content changed or with content committed. (Closed)
Patch Set: Address dshwang and zhenyao comments Created 3 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp
index 7a26d0f0102499c20e5b3afe6f6e882fb03cdeeb..e30fb8ecc684b3e67da55e829262206db3551a44 100644
--- a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp
@@ -984,7 +984,7 @@ void DrawingBuffer::ResolveAndBindForReadAndDraw() {
void DrawingBuffer::ResolveMultisampleFramebufferInternal() {
DCHECK(state_restorer_);
state_restorer_->SetFramebufferBindingDirty();
- if (WantExplicitResolve() && !contents_change_resolved_) {
+ if (WantExplicitResolve()) {
state_restorer_->SetClearStateDirty();
gl_->BindFramebuffer(GL_READ_FRAMEBUFFER_ANGLE, multisample_fbo_);
gl_->BindFramebuffer(GL_DRAW_FRAMEBUFFER_ANGLE, fbo_);
@@ -1017,7 +1017,7 @@ void DrawingBuffer::ResolveMultisampleFramebufferInternal() {
}
void DrawingBuffer::ResolveIfNeeded() {
- if (anti_aliasing_mode_ != kNone)
+ if (anti_aliasing_mode_ != kNone && !contents_change_resolved_)
Zhenyao Mo 2017/04/13 17:36:06 This is a behavioral change. Because before even
xinghua.cao 2017/04/26 10:46:37 Zhenyao, I had made a more carefully investigation
Ken Russell (switch to Gerrit) 2017/04/28 00:10:00 This sounds correct. One note: DrawingBuffer::Prep
dshwang 2017/04/28 02:08:29 I think so.
dshwang 2017/04/28 02:48:42 ResolveMultisampleFramebufferInternal() set fbo di
ResolveMultisampleFramebufferInternal();
contents_change_resolved_ = true;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698