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

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

Issue 2888043004: [cc] Add and plumb CFS::DidNotProduceFrame. (Closed)
Patch Set: 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 30 matching lines...) Expand all
41 41
42 DelegatedFrameHostAndroid(ViewAndroid* view, 42 DelegatedFrameHostAndroid(ViewAndroid* view,
43 cc::SurfaceManager* surface_manager, 43 cc::SurfaceManager* surface_manager,
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 void BeginFrameDidNotProduceFrame(const cc::BeginFrameAck& ack);
51 52
52 void DestroyDelegatedContent(); 53 void DestroyDelegatedContent();
53 54
54 bool HasDelegatedContent() const; 55 bool HasDelegatedContent() const;
55 56
56 cc::FrameSinkId GetFrameSinkId() const; 57 cc::FrameSinkId GetFrameSinkId() const;
57 58
58 // Should only be called when the host has a content layer. 59 // Should only be called when the host has a content layer.
59 void RequestCopyOfSurface( 60 void RequestCopyOfSurface(
60 WindowAndroidCompositor* compositor, 61 WindowAndroidCompositor* compositor,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 bool has_transparent_background_ = false; 102 bool has_transparent_background_ = false;
102 103
103 scoped_refptr<cc::SurfaceLayer> content_layer_; 104 scoped_refptr<cc::SurfaceLayer> content_layer_;
104 105
105 DISALLOW_COPY_AND_ASSIGN(DelegatedFrameHostAndroid); 106 DISALLOW_COPY_AND_ASSIGN(DelegatedFrameHostAndroid);
106 }; 107 };
107 108
108 } // namespace ui 109 } // namespace ui
109 110
110 #endif // UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_ 111 #endif // UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698