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

Side by Side Diff: android_webview/browser/hardware_renderer.h

Issue 2905523003: Revert of Enforce constant size and device scale factor for surfaces (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
« no previous file with comments | « no previous file | android_webview/browser/hardware_renderer.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_
6 #define ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ 6 #define ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "android_webview/browser/child_frame.h" 10 #include "android_webview/browser/child_frame.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 void DestroySurface(); 66 void DestroySurface();
67 67
68 void CreateNewCompositorFrameSinkSupport(); 68 void CreateNewCompositorFrameSinkSupport();
69 69
70 RenderThreadManager* render_thread_manager_; 70 RenderThreadManager* render_thread_manager_;
71 71
72 typedef void* EGLContext; 72 typedef void* EGLContext;
73 EGLContext last_egl_context_; 73 EGLContext last_egl_context_;
74 74
75 // Information about last delegated frame. 75 // Information about last delegated frame.
76 gfx::Size surface_size_; 76 gfx::Size frame_size_;
77 float device_scale_factor_ = 0;
78 77
79 // Infromation from UI on last commit. 78 // Infromation from UI on last commit.
80 gfx::Vector2d scroll_offset_; 79 gfx::Vector2d scroll_offset_;
81 80
82 ChildFrameQueue child_frame_queue_; 81 ChildFrameQueue child_frame_queue_;
83 82
84 // This holds the last ChildFrame received. Contains the frame info of the 83 // This holds the last ChildFrame received. Contains the frame info of the
85 // last frame. The |frame| member is always null since frame has already 84 // last frame. The |frame| member is always null since frame has already
86 // been submitted. 85 // been submitted.
87 std::unique_ptr<ChildFrame> child_frame_; 86 std::unique_ptr<ChildFrame> child_frame_;
(...skipping 10 matching lines...) Expand all
98 // dropped. 97 // dropped.
99 uint32_t last_committed_compositor_frame_sink_id_; 98 uint32_t last_committed_compositor_frame_sink_id_;
100 uint32_t last_submitted_compositor_frame_sink_id_; 99 uint32_t last_submitted_compositor_frame_sink_id_;
101 100
102 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); 101 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer);
103 }; 102 };
104 103
105 } // namespace android_webview 104 } // namespace android_webview
106 105
107 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ 106 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/hardware_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698