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; |
} |