| 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_ONSCREEN_DISPLAY_CLIENT_H_ | 5 #ifndef CONTENT_BROWSER_COMPOSITOR_ONSCREEN_DISPLAY_CLIENT_H_ |
| 6 #define CONTENT_BROWSER_COMPOSITOR_ONSCREEN_DISPLAY_CLIENT_H_ | 6 #define CONTENT_BROWSER_COMPOSITOR_ONSCREEN_DISPLAY_CLIENT_H_ |
| 7 | 7 |
| 8 #include "cc/surfaces/display_client.h" | 8 #include "cc/surfaces/display_client.h" |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 void ScheduleDraw(); | 49 void ScheduleDraw(); |
| 50 void Draw(); | 50 void Draw(); |
| 51 | 51 |
| 52 scoped_ptr<cc::OutputSurface> output_surface_; | 52 scoped_ptr<cc::OutputSurface> output_surface_; |
| 53 scoped_ptr<cc::Display> display_; | 53 scoped_ptr<cc::Display> display_; |
| 54 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 54 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
| 55 SurfaceDisplayOutputSurface* surface_display_output_surface_; | 55 SurfaceDisplayOutputSurface* surface_display_output_surface_; |
| 56 bool scheduled_draw_; | 56 bool scheduled_draw_; |
| 57 bool output_surface_lost_; |
| 57 // True if a draw should be scheduled, but it's hit the limit on max frames | 58 // True if a draw should be scheduled, but it's hit the limit on max frames |
| 58 // pending. | 59 // pending. |
| 59 bool deferred_draw_; | 60 bool deferred_draw_; |
| 60 int pending_frames_; | 61 int pending_frames_; |
| 61 | 62 |
| 62 base::WeakPtrFactory<OnscreenDisplayClient> weak_ptr_factory_; | 63 base::WeakPtrFactory<OnscreenDisplayClient> weak_ptr_factory_; |
| 63 | 64 |
| 64 DISALLOW_COPY_AND_ASSIGN(OnscreenDisplayClient); | 65 DISALLOW_COPY_AND_ASSIGN(OnscreenDisplayClient); |
| 65 }; | 66 }; |
| 66 | 67 |
| 67 } // namespace content | 68 } // namespace content |
| 68 | 69 |
| 69 #endif // CONTENT_BROWSER_COMPOSITOR_ONSCREEN_DISPLAY_CLIENT_H_ | 70 #endif // CONTENT_BROWSER_COMPOSITOR_ONSCREEN_DISPLAY_CLIENT_H_ |
| OLD | NEW |