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

Unified Diff: content/browser/compositor/gpu_browser_compositor_output_surface.cc

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
« no previous file with comments | « no previous file | content/browser/compositor/reflector_texture.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/compositor/gpu_browser_compositor_output_surface.cc
diff --git a/content/browser/compositor/gpu_browser_compositor_output_surface.cc b/content/browser/compositor/gpu_browser_compositor_output_surface.cc
index 4cdfbb78650dd035d8ff2b8659dc75090cd89159..f7c6abb7200b3cca4839e4bb5e046e1252ec78de 100644
--- a/content/browser/compositor/gpu_browser_compositor_output_surface.cc
+++ b/content/browser/compositor/gpu_browser_compositor_output_surface.cc
@@ -108,7 +108,7 @@ void GpuBrowserCompositorOutputSurface::SwapBuffers(
gfx::Size surface_size = frame.size;
if (reflector_) {
- if (frame.sub_buffer_rect) {
+ if (frame.sub_buffer_rect && reflector_texture_->is_texture_defined()) {
danakj 2017/04/03 19:30:56 Looks like this bool could live on this class here
reflector_texture_->CopyTextureSubImage(*frame.sub_buffer_rect);
reflector_->OnSourcePostSubBuffer(*frame.sub_buffer_rect, surface_size);
} else {
« no previous file with comments | « no previous file | content/browser/compositor/reflector_texture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698