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

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

Issue 2083853002: exo: Recreate Surface resources on context lost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix nits Created 4 years, 6 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 CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 }; 85 };
86 86
87 // The DelegatedFrameHost is used to host all of the RenderWidgetHostView state 87 // The DelegatedFrameHost is used to host all of the RenderWidgetHostView state
88 // and functionality that is associated with delegated frames being sent from 88 // and functionality that is associated with delegated frames being sent from
89 // the RenderWidget. The DelegatedFrameHost will push these changes through to 89 // the RenderWidget. The DelegatedFrameHost will push these changes through to
90 // the ui::Compositor associated with its DelegatedFrameHostClient. 90 // the ui::Compositor associated with its DelegatedFrameHostClient.
91 class CONTENT_EXPORT DelegatedFrameHost 91 class CONTENT_EXPORT DelegatedFrameHost
92 : public ui::CompositorObserver, 92 : public ui::CompositorObserver,
93 public ui::CompositorVSyncManager::Observer, 93 public ui::CompositorVSyncManager::Observer,
94 public ui::LayerOwnerDelegate, 94 public ui::LayerOwnerDelegate,
95 public ImageTransportFactoryObserver, 95 public ui::ContextFactoryObserver,
96 public DelegatedFrameEvictorClient, 96 public DelegatedFrameEvictorClient,
97 public cc::SurfaceFactoryClient, 97 public cc::SurfaceFactoryClient,
98 public base::SupportsWeakPtr<DelegatedFrameHost> { 98 public base::SupportsWeakPtr<DelegatedFrameHost> {
99 public: 99 public:
100 explicit DelegatedFrameHost(DelegatedFrameHostClient* client); 100 explicit DelegatedFrameHost(DelegatedFrameHostClient* client);
101 ~DelegatedFrameHost() override; 101 ~DelegatedFrameHost() override;
102 102
103 // ui::CompositorObserver implementation. 103 // ui::CompositorObserver implementation.
104 void OnCompositingDidCommit(ui::Compositor* compositor) override; 104 void OnCompositingDidCommit(ui::Compositor* compositor) override;
105 void OnCompositingStarted(ui::Compositor* compositor, 105 void OnCompositingStarted(ui::Compositor* compositor,
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 // YUV readback pipeline. 327 // YUV readback pipeline.
328 std::unique_ptr<display_compositor::ReadbackYUVInterface> 328 std::unique_ptr<display_compositor::ReadbackYUVInterface>
329 yuv_readback_pipeline_; 329 yuv_readback_pipeline_;
330 330
331 std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; 331 std::unique_ptr<DelegatedFrameEvictor> delegated_frame_evictor_;
332 }; 332 };
333 333
334 } // namespace content 334 } // namespace content
335 335
336 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_ 336 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698