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

Side by Side Diff: content/browser/compositor/gpu_browser_compositor_output_surface.h

Issue 2797443003: Fix screen mirroring on Chrome OS (ReflectorTexture partial swap) (Closed)
Patch Set: Track texture status in output surface class 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/compositor/gpu_browser_compositor_output_surface.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
6 #define CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 6 #define CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 void SetDrawRectangle(const gfx::Rect& rect) override; 79 void SetDrawRectangle(const gfx::Rect& rect) override;
80 80
81 // GpuVSyncControl implementation. 81 // GpuVSyncControl implementation.
82 void SetNeedsVSync(bool needs_vsync) override; 82 void SetNeedsVSync(bool needs_vsync) override;
83 83
84 protected: 84 protected:
85 gpu::CommandBufferProxyImpl* GetCommandBufferProxy(); 85 gpu::CommandBufferProxyImpl* GetCommandBufferProxy();
86 86
87 cc::OutputSurfaceClient* client_ = nullptr; 87 cc::OutputSurfaceClient* client_ = nullptr;
88 std::unique_ptr<ReflectorTexture> reflector_texture_; 88 std::unique_ptr<ReflectorTexture> reflector_texture_;
89 bool reflector_texture_defined_ = false;
89 bool set_draw_rectangle_for_frame_ = false; 90 bool set_draw_rectangle_for_frame_ = false;
90 // True if the draw rectangle has been set at all since the last resize. 91 // True if the draw rectangle has been set at all since the last resize.
91 bool has_set_draw_rectangle_since_last_resize_ = false; 92 bool has_set_draw_rectangle_since_last_resize_ = false;
92 gfx::Size size_; 93 gfx::Size size_;
93 base::WeakPtrFactory<GpuBrowserCompositorOutputSurface> weak_ptr_factory_; 94 base::WeakPtrFactory<GpuBrowserCompositorOutputSurface> weak_ptr_factory_;
94 95
95 private: 96 private:
96 DISALLOW_COPY_AND_ASSIGN(GpuBrowserCompositorOutputSurface); 97 DISALLOW_COPY_AND_ASSIGN(GpuBrowserCompositorOutputSurface);
97 }; 98 };
98 99
99 } // namespace content 100 } // namespace content
100 101
101 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 102 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/compositor/gpu_browser_compositor_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698