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_REFLECTOR_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_COMPOSITOR_REFLECTOR_IMPL_H_ |
6 #define CONTENT_BROWSER_COMPOSITOR_REFLECTOR_IMPL_H_ | 6 #define CONTENT_BROWSER_COMPOSITOR_REFLECTOR_IMPL_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 void Shutdown(); | 47 void Shutdown(); |
48 | 48 |
49 void DetachFromOutputSurface(); | 49 void DetachFromOutputSurface(); |
50 | 50 |
51 // ui::Reflector: | 51 // ui::Reflector: |
52 void OnMirroringCompositorResized() override; | 52 void OnMirroringCompositorResized() override; |
53 void AddMirroringLayer(ui::Layer* layer) override; | 53 void AddMirroringLayer(ui::Layer* layer) override; |
54 void RemoveMirroringLayer(ui::Layer* layer) override; | 54 void RemoveMirroringLayer(ui::Layer* layer) override; |
55 | 55 |
56 // ui::CompositorObserver: | 56 // ui::CompositorObserver: |
| 57 void OnCompositingInitialized(ui::Compositor* compositor) override {} |
57 void OnCompositingDidCommit(ui::Compositor* compositor) override {} | 58 void OnCompositingDidCommit(ui::Compositor* compositor) override {} |
58 void OnCompositingStarted(ui::Compositor* compositor, | 59 void OnCompositingStarted(ui::Compositor* compositor, |
59 base::TimeTicks start_time) override; | 60 base::TimeTicks start_time) override; |
60 void OnCompositingEnded(ui::Compositor* compositor) override {} | 61 void OnCompositingEnded(ui::Compositor* compositor) override {} |
61 void OnCompositingAborted(ui::Compositor* compositor) override {} | 62 void OnCompositingAborted(ui::Compositor* compositor) override {} |
62 void OnCompositingLockStateChanged(ui::Compositor* compositor) override {} | 63 void OnCompositingLockStateChanged(ui::Compositor* compositor) override {} |
63 void OnCompositingShuttingDown(ui::Compositor* compositor) override {} | 64 void OnCompositingShuttingDown(ui::Compositor* compositor) override {} |
64 | 65 |
65 // Called in |BrowserCompositorOutputSurface::SwapBuffers| to copy | 66 // Called in |BrowserCompositorOutputSurface::SwapBuffers| to copy |
66 // the full screen image to the |mailbox_| texture. | 67 // the full screen image to the |mailbox_| texture. |
(...skipping 25 matching lines...) Expand all Loading... |
92 scoped_refptr<OwnedMailbox> mailbox_; | 93 scoped_refptr<OwnedMailbox> mailbox_; |
93 bool flip_texture_; | 94 bool flip_texture_; |
94 int composition_count_; | 95 int composition_count_; |
95 BrowserCompositorOutputSurface* output_surface_; | 96 BrowserCompositorOutputSurface* output_surface_; |
96 base::Closure composition_started_callback_; | 97 base::Closure composition_started_callback_; |
97 }; | 98 }; |
98 | 99 |
99 } // namespace content | 100 } // namespace content |
100 | 101 |
101 #endif // CONTENT_BROWSER_COMPOSITOR_REFLECTOR_IMPL_H_ | 102 #endif // CONTENT_BROWSER_COMPOSITOR_REFLECTOR_IMPL_H_ |
OLD | NEW |