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

Side by Side Diff: content/renderer/android/synchronous_compositor_output_surface.h

Issue 1773873002: sync compositor: Handle context loss (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ 5 #ifndef CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_
6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ 6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 const scoped_refptr<cc::ContextProvider>& worker_context_provider, 63 const scoped_refptr<cc::ContextProvider>& worker_context_provider,
64 int routing_id, 64 int routing_id,
65 uint32_t output_surface_id, 65 uint32_t output_surface_id,
66 SynchronousCompositorRegistry* registry, 66 SynchronousCompositorRegistry* registry,
67 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue); 67 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue);
68 ~SynchronousCompositorOutputSurface() override; 68 ~SynchronousCompositorOutputSurface() override;
69 69
70 void SetSyncClient(SynchronousCompositorOutputSurfaceClient* compositor); 70 void SetSyncClient(SynchronousCompositorOutputSurfaceClient* compositor);
71 71
72 // OutputSurface. 72 // OutputSurface.
73 void DidLoseOutputSurface() override;
74 bool BindToClient(cc::OutputSurfaceClient* surface_client) override; 73 bool BindToClient(cc::OutputSurfaceClient* surface_client) override;
75 void DetachFromClient() override; 74 void DetachFromClient() override;
76 void Reshape(const gfx::Size& size, 75 void Reshape(const gfx::Size& size,
77 float scale_factor, 76 float scale_factor,
78 bool has_alpha) override; 77 bool has_alpha) override;
79 void SwapBuffers(cc::CompositorFrame* frame) override; 78 void SwapBuffers(cc::CompositorFrame* frame) override;
80 void Invalidate() override; 79 void Invalidate() override;
81 80
82 // Partial SynchronousCompositor API implementation. 81 // Partial SynchronousCompositor API implementation.
83 void DemandDrawHw(const gfx::Size& surface_size, 82 void DemandDrawHw(const gfx::Size& surface_size,
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 bool fallback_tick_running_; 129 bool fallback_tick_running_;
131 130
132 base::ThreadChecker thread_checker_; 131 base::ThreadChecker thread_checker_;
133 132
134 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface); 133 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface);
135 }; 134 };
136 135
137 } // namespace content 136 } // namespace content
138 137
139 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ 138 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698