| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_ | 5 #ifndef UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_ |
| 6 #define UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_ | 6 #define UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "cc/output/copy_output_request.h" | 10 #include "cc/output/copy_output_request.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 Client* client, | 44 Client* client, |
| 45 const cc::FrameSinkId& frame_sink_id); | 45 const cc::FrameSinkId& frame_sink_id); |
| 46 | 46 |
| 47 ~DelegatedFrameHostAndroid() override; | 47 ~DelegatedFrameHostAndroid() override; |
| 48 | 48 |
| 49 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, | 49 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, |
| 50 cc::CompositorFrame frame); | 50 cc::CompositorFrame frame); |
| 51 | 51 |
| 52 void DestroyDelegatedContent(); | 52 void DestroyDelegatedContent(); |
| 53 | 53 |
| 54 void ForceFrame(cc::CompositorFrame frame); |
| 55 |
| 54 bool HasDelegatedContent() const; | 56 bool HasDelegatedContent() const; |
| 55 | 57 |
| 56 cc::FrameSinkId GetFrameSinkId() const; | 58 cc::FrameSinkId GetFrameSinkId() const; |
| 57 | 59 |
| 58 // Should only be called when the host has a content layer. | 60 // Should only be called when the host has a content layer. |
| 59 void RequestCopyOfSurface( | 61 void RequestCopyOfSurface( |
| 60 WindowAndroidCompositor* compositor, | 62 WindowAndroidCompositor* compositor, |
| 61 const gfx::Rect& src_subrect_in_pixel, | 63 const gfx::Rect& src_subrect_in_pixel, |
| 62 cc::CopyOutputRequest::CopyOutputRequestCallback result_callback); | 64 cc::CopyOutputRequest::CopyOutputRequestCallback result_callback); |
| 63 | 65 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 bool has_transparent_background_ = false; | 103 bool has_transparent_background_ = false; |
| 102 | 104 |
| 103 scoped_refptr<cc::SurfaceLayer> content_layer_; | 105 scoped_refptr<cc::SurfaceLayer> content_layer_; |
| 104 | 106 |
| 105 DISALLOW_COPY_AND_ASSIGN(DelegatedFrameHostAndroid); | 107 DISALLOW_COPY_AND_ASSIGN(DelegatedFrameHostAndroid); |
| 106 }; | 108 }; |
| 107 | 109 |
| 108 } // namespace ui | 110 } // namespace ui |
| 109 | 111 |
| 110 #endif // UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_ | 112 #endif // UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_ |
| OLD | NEW |