| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |