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

Side by Side Diff: ui/android/delegated_frame_host_android.h

Issue 2810813004: Hide fullscreen rotation jank (Closed)
Patch Set: Build error fixes Created 3 years, 7 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
OLDNEW
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 void DidNotProduceFrame(const cc::BeginFrameAck& ack); 51 void DidNotProduceFrame(const cc::BeginFrameAck& ack);
52 52
53 void DestroyDelegatedContent(); 53 void DestroyDelegatedContent();
54 54
55 void ForceFrame(cc::CompositorFrame frame);
56
55 bool HasDelegatedContent() const; 57 bool HasDelegatedContent() const;
56 58
57 cc::FrameSinkId GetFrameSinkId() const; 59 cc::FrameSinkId GetFrameSinkId() const;
58 60
59 // Should only be called when the host has a content layer. 61 // Should only be called when the host has a content layer.
60 void RequestCopyOfSurface( 62 void RequestCopyOfSurface(
61 WindowAndroidCompositor* compositor, 63 WindowAndroidCompositor* compositor,
62 const gfx::Rect& src_subrect_in_pixel, 64 const gfx::Rect& src_subrect_in_pixel,
63 cc::CopyOutputRequest::CopyOutputRequestCallback result_callback); 65 cc::CopyOutputRequest::CopyOutputRequestCallback result_callback);
64 66
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698