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

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

Issue 2382873002: Replace usage of SurfaceId's client_id with FrameSinkId (Closed)
Patch Set: Fix android_webview Created 4 years, 2 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 ~DelegatedFrameHostAndroid() override; 44 ~DelegatedFrameHostAndroid() override;
45 45
46 void SubmitCompositorFrame(cc::CompositorFrame frame, 46 void SubmitCompositorFrame(cc::CompositorFrame frame,
47 cc::SurfaceFactory::DrawCallback draw_callback); 47 cc::SurfaceFactory::DrawCallback draw_callback);
48 48
49 void DestroyDelegatedContent(); 49 void DestroyDelegatedContent();
50 50
51 bool HasDelegatedContent() const; 51 bool HasDelegatedContent() const;
52 52
53 uint32_t GetSurfaceClientId() const; 53 cc::FrameSinkId GetFrameSinkId() const;
54 54
55 // Should only be called when the host has a content layer. 55 // Should only be called when the host has a content layer.
56 void RequestCopyOfSurface( 56 void RequestCopyOfSurface(
57 WindowAndroidCompositor* compositor, 57 WindowAndroidCompositor* compositor,
58 const gfx::Rect& src_subrect_in_pixel, 58 const gfx::Rect& src_subrect_in_pixel,
59 cc::CopyOutputRequest::CopyOutputRequestCallback result_callback); 59 cc::CopyOutputRequest::CopyOutputRequestCallback result_callback);
60 60
61 void CompositorFrameSinkChanged(); 61 void CompositorFrameSinkChanged();
62 62
63 void UpdateBackgroundColor(SkColor color); 63 void UpdateBackgroundColor(SkColor color);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 scoped_refptr<cc::Layer> background_layer_; 99 scoped_refptr<cc::Layer> background_layer_;
100 100
101 gfx::Size container_size_in_dip_; 101 gfx::Size container_size_in_dip_;
102 102
103 DISALLOW_COPY_AND_ASSIGN(DelegatedFrameHostAndroid); 103 DISALLOW_COPY_AND_ASSIGN(DelegatedFrameHostAndroid);
104 }; 104 };
105 105
106 } // namespace ui 106 } // namespace ui
107 107
108 #endif // UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_ 108 #endif // UI_ANDROID_DELEGATED_FRAME_HOST_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698