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

Unified Diff: content/browser/compositor/reflector_texture.h

Issue 2797443003: Fix screen mirroring on Chrome OS (ReflectorTexture partial swap) (Closed)
Patch Set: Created 3 years, 9 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: content/browser/compositor/reflector_texture.h
diff --git a/content/browser/compositor/reflector_texture.h b/content/browser/compositor/reflector_texture.h
index 197399b37ac11b57672511353145b98eddac7fed..37dcdd3512bae1ff5f4620d4feab166d3ab5ab2d 100644
--- a/content/browser/compositor/reflector_texture.h
+++ b/content/browser/compositor/reflector_texture.h
@@ -38,6 +38,8 @@ class CONTENT_EXPORT ReflectorTexture {
void CopyTextureFullImage(const gfx::Size& size);
void CopyTextureSubImage(const gfx::Rect& size);
+ bool is_texture_defined() const { return is_texture_defined_; }
+
uint32_t texture_id() const { return texture_id_; }
scoped_refptr<OwnedMailbox> mailbox() { return mailbox_; }
@@ -45,6 +47,7 @@ class CONTENT_EXPORT ReflectorTexture {
scoped_refptr<OwnedMailbox> mailbox_;
std::unique_ptr<display_compositor::GLHelper> gl_helper_;
uint32_t texture_id_;
+ bool is_texture_defined_ = false;
DISALLOW_COPY_AND_ASSIGN(ReflectorTexture);
};

Powered by Google App Engine
This is Rietveld 408576698