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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 2882303002: Factor FrameData out of RendererCompositorFrameSink (Closed)
Patch Set: c 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
« no previous file with comments | « content/browser/bad_message.h ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 21 matching lines...) Expand all
32 #include "content/browser/renderer_host/input/input_ack_handler.h" 32 #include "content/browser/renderer_host/input/input_ack_handler.h"
33 #include "content/browser/renderer_host/input/input_router_client.h" 33 #include "content/browser/renderer_host/input/input_router_client.h"
34 #include "content/browser/renderer_host/input/render_widget_host_latency_tracker .h" 34 #include "content/browser/renderer_host/input/render_widget_host_latency_tracker .h"
35 #include "content/browser/renderer_host/input/synthetic_gesture.h" 35 #include "content/browser/renderer_host/input/synthetic_gesture.h"
36 #include "content/browser/renderer_host/input/touch_emulator_client.h" 36 #include "content/browser/renderer_host/input/touch_emulator_client.h"
37 #include "content/browser/renderer_host/render_widget_host_delegate.h" 37 #include "content/browser/renderer_host/render_widget_host_delegate.h"
38 #include "content/browser/renderer_host/render_widget_host_view_base.h" 38 #include "content/browser/renderer_host/render_widget_host_view_base.h"
39 #include "content/common/drag_event_source_info.h" 39 #include "content/common/drag_event_source_info.h"
40 #include "content/common/input/input_event_ack_state.h" 40 #include "content/common/input/input_event_ack_state.h"
41 #include "content/common/input/synthetic_gesture_packet.h" 41 #include "content/common/input/synthetic_gesture_packet.h"
42 #include "content/common/render_widget_surface_properties.h"
42 #include "content/common/view_message_enums.h" 43 #include "content/common/view_message_enums.h"
43 #include "content/public/browser/render_widget_host.h" 44 #include "content/public/browser/render_widget_host.h"
44 #include "content/public/common/page_zoom.h" 45 #include "content/public/common/page_zoom.h"
45 #include "content/public/common/url_constants.h" 46 #include "content/public/common/url_constants.h"
46 #include "ipc/ipc_listener.h" 47 #include "ipc/ipc_listener.h"
47 #include "mojo/public/cpp/bindings/binding.h" 48 #include "mojo/public/cpp/bindings/binding.h"
48 #include "third_party/WebKit/public/platform/WebDisplayMode.h" 49 #include "third_party/WebKit/public/platform/WebDisplayMode.h"
49 #include "ui/base/ime/text_input_mode.h" 50 #include "ui/base/ime/text_input_mode.h"
50 #include "ui/base/ime/text_input_type.h" 51 #include "ui/base/ime/text_input_type.h"
51 #include "ui/events/gesture_detection/gesture_provider_config_helper.h" 52 #include "ui/events/gesture_detection/gesture_provider_config_helper.h"
(...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after
953 // received frame belongs to the current page. If a frame for the current page 954 // received frame belongs to the current page. If a frame for the current page
954 // does not arrive in time after nagivation, we clear the graphics of the old 955 // does not arrive in time after nagivation, we clear the graphics of the old
955 // page. See RenderWidget::current_content_source_id_ for more information. 956 // page. See RenderWidget::current_content_source_id_ for more information.
956 uint32_t last_received_content_source_id_ = 0; 957 uint32_t last_received_content_source_id_ = 0;
957 958
958 #if defined(OS_MACOSX) 959 #if defined(OS_MACOSX)
959 std::unique_ptr<device::PowerSaveBlocker> power_save_blocker_; 960 std::unique_ptr<device::PowerSaveBlocker> power_save_blocker_;
960 #endif 961 #endif
961 962
962 // These information are used to verify that the renderer does not misbehave 963 // These information are used to verify that the renderer does not misbehave
963 // when it comes to allocating LocalSurfaceIds. If frame size or device scale 964 // when it comes to allocating LocalSurfaceIds. If surface properties change,
964 // factor change, a new LocalSurfaceId must be created. 965 // a new LocalSurfaceId must be created.
965 cc::LocalSurfaceId last_local_surface_id_; 966 cc::LocalSurfaceId last_local_surface_id_;
966 gfx::Size last_frame_size_; 967 RenderWidgetSurfaceProperties last_surface_properties_;
967 float last_device_scale_factor_;
968 968
969 mojo::Binding<cc::mojom::MojoCompositorFrameSink> 969 mojo::Binding<cc::mojom::MojoCompositorFrameSink>
970 compositor_frame_sink_binding_; 970 compositor_frame_sink_binding_;
971 cc::mojom::MojoCompositorFrameSinkClientPtr renderer_compositor_frame_sink_; 971 cc::mojom::MojoCompositorFrameSinkClientPtr renderer_compositor_frame_sink_;
972 972
973 cc::CompositorFrameMetadata last_frame_metadata_; 973 cc::CompositorFrameMetadata last_frame_metadata_;
974 974
975 // Last non-zero frame token received from the renderer. Any swap messsages 975 // Last non-zero frame token received from the renderer. Any swap messsages
976 // having a token less than or equal to this value will be processed. 976 // having a token less than or equal to this value will be processed.
977 uint32_t last_received_frame_token_ = 0; 977 uint32_t last_received_frame_token_ = 0;
978 978
979 // List of all swap messages that their corresponding frames have not arrived. 979 // List of all swap messages that their corresponding frames have not arrived.
980 // Sorted by frame token. 980 // Sorted by frame token.
981 std::queue<std::pair<uint32_t, std::vector<IPC::Message>>> queued_messages_; 981 std::queue<std::pair<uint32_t, std::vector<IPC::Message>>> queued_messages_;
982 982
983 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 983 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
984 984
985 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 985 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
986 }; 986 };
987 987
988 } // namespace content 988 } // namespace content
989 989
990 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 990 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/bad_message.h ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698