| OLD | NEW |
| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 76 |
| 77 // This holds the last ChildFrame received. Contains the frame info of the | 77 // This holds the last ChildFrame received. Contains the frame info of the |
| 78 // last frame. The |frame| member is always null since frame has already | 78 // last frame. The |frame| member is always null since frame has already |
| 79 // been submitted. | 79 // been submitted. |
| 80 std::unique_ptr<ChildFrame> child_frame_; | 80 std::unique_ptr<ChildFrame> child_frame_; |
| 81 | 81 |
| 82 const scoped_refptr<SurfacesInstance> surfaces_; | 82 const scoped_refptr<SurfacesInstance> surfaces_; |
| 83 cc::FrameSinkId frame_sink_id_; | 83 cc::FrameSinkId frame_sink_id_; |
| 84 const std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_; | 84 const std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_; |
| 85 std::unique_ptr<cc::SurfaceFactory> surface_factory_; | 85 std::unique_ptr<cc::SurfaceFactory> surface_factory_; |
| 86 cc::LocalFrameId child_id_; | 86 cc::LocalSurfaceId child_id_; |
| 87 CompositorID compositor_id_; | 87 CompositorID compositor_id_; |
| 88 // HardwareRenderer guarantees resources are returned in the order of | 88 // HardwareRenderer guarantees resources are returned in the order of |
| 89 // compositor_frame_sink_id, and resources for old output surfaces are | 89 // compositor_frame_sink_id, and resources for old output surfaces are |
| 90 // dropped. | 90 // dropped. |
| 91 uint32_t last_committed_compositor_frame_sink_id_; | 91 uint32_t last_committed_compositor_frame_sink_id_; |
| 92 uint32_t last_submitted_compositor_frame_sink_id_; | 92 uint32_t last_submitted_compositor_frame_sink_id_; |
| 93 | 93 |
| 94 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); | 94 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 } // namespace android_webview | 97 } // namespace android_webview |
| 98 | 98 |
| 99 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ | 99 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ |
| OLD | NEW |