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

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

Issue 2388753003: Introduce cc::LocalFrameId and use in SurfaceFactory (Closed)
Patch Set: Fix exo_unittests 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 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/compositor_id.h" 10 #include "android_webview/browser/compositor_id.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 // This holds the last ChildFrame received. Contains the frame info of the 64 // This holds the last ChildFrame received. Contains the frame info of the
65 // last frame. The |frame| member may be null if it's already submitted to 65 // last frame. The |frame| member may be null if it's already submitted to
66 // SurfaceFactory. 66 // SurfaceFactory.
67 std::unique_ptr<ChildFrame> child_frame_; 67 std::unique_ptr<ChildFrame> child_frame_;
68 68
69 const scoped_refptr<SurfacesInstance> surfaces_; 69 const scoped_refptr<SurfacesInstance> surfaces_;
70 cc::FrameSinkId frame_sink_id_; 70 cc::FrameSinkId frame_sink_id_;
71 const std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_; 71 const std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_;
72 std::unique_ptr<cc::SurfaceFactory> surface_factory_; 72 std::unique_ptr<cc::SurfaceFactory> surface_factory_;
73 cc::SurfaceId child_id_; 73 cc::LocalFrameId child_id_;
74 CompositorID compositor_id_; 74 CompositorID compositor_id_;
75 // HardwareRenderer guarantees resources are returned in the order of 75 // HardwareRenderer guarantees resources are returned in the order of
76 // compositor_frame_sink_id, and resources for old output surfaces are 76 // compositor_frame_sink_id, and resources for old output surfaces are
77 // dropped. 77 // dropped.
78 uint32_t last_committed_compositor_frame_sink_id_; 78 uint32_t last_committed_compositor_frame_sink_id_;
79 uint32_t last_submitted_compositor_frame_sink_id_; 79 uint32_t last_submitted_compositor_frame_sink_id_;
80 80
81 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); 81 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer);
82 }; 82 };
83 83
84 } // namespace android_webview 84 } // namespace android_webview
85 85
86 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ 86 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/hardware_renderer.cc » ('j') | cc/surfaces/surface_factory.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698