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

Unified Diff: gpu/command_buffer/service/framebuffer_manager.cc

Issue 2543123003: gpu, cmaa: improve |do_copy| condition logic (Closed)
Patch Set: Created 4 years 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: gpu/command_buffer/service/framebuffer_manager.cc
diff --git a/gpu/command_buffer/service/framebuffer_manager.cc b/gpu/command_buffer/service/framebuffer_manager.cc
index 0fd59c5fd6ba1dfb618709f97b1a8269481fd6d2..d86b4f406d34a5ec57ba36c01001cb928578dcd7 100644
--- a/gpu/command_buffer/service/framebuffer_manager.cc
+++ b/gpu/command_buffer/service/framebuffer_manager.cc
@@ -66,6 +66,7 @@ class RenderbufferAttachment
bool IsTextureAttachment() const override { return false; }
bool IsRenderbufferAttachment() const override { return true; }
+ bool IsTextureAttachmentImmutable() const override { return false; }
bool IsTexture(TextureRef* /* texture */) const override { return false; }
@@ -205,6 +206,9 @@ class TextureAttachment
bool IsTextureAttachment() const override { return true; }
bool IsRenderbufferAttachment() const override { return false; }
+ bool IsTextureAttachmentImmutable() const override {
+ return texture_ref_->texture()->IsImmutable();
+ }
bool IsTexture(TextureRef* texture) const override {
return texture == texture_ref_.get();

Powered by Google App Engine
This is Rietveld 408576698