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

Side by Side Diff: content/gpu/gpu_child_thread.h

Issue 1878103002: Plumb a Browser->GPU surface destruction message for Android VDAs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a threadchecker Created 4 years, 8 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 | « content/content_common.gypi ('k') | content/gpu/gpu_child_thread.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_GPU_GPU_CHILD_THREAD_H_ 5 #ifndef CONTENT_GPU_GPU_CHILD_THREAD_H_
6 #define CONTENT_GPU_GPU_CHILD_THREAD_H_ 6 #define CONTENT_GPU_GPU_CHILD_THREAD_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 void OnBufferPresented(const BufferPresentedParams& params); 129 void OnBufferPresented(const BufferPresentedParams& params);
130 #endif 130 #endif
131 void OnEstablishChannel(const EstablishChannelParams& params); 131 void OnEstablishChannel(const EstablishChannelParams& params);
132 void OnCloseChannel(int32_t client_id); 132 void OnCloseChannel(int32_t client_id);
133 void OnLoadedShader(const std::string& shader); 133 void OnLoadedShader(const std::string& shader);
134 void OnDestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, 134 void OnDestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id,
135 int client_id, 135 int client_id,
136 const gpu::SyncToken& sync_token); 136 const gpu::SyncToken& sync_token);
137 #if defined(OS_ANDROID) 137 #if defined(OS_ANDROID)
138 void OnWakeUpGpu(); 138 void OnWakeUpGpu();
139 void OnDestroyingVideoSurface(int surface_id);
139 #endif 140 #endif
140 void OnLoseAllContexts(); 141 void OnLoseAllContexts();
141 142
142 void BindProcessControlRequest( 143 void BindProcessControlRequest(
143 mojo::InterfaceRequest<mojom::ProcessControl> request); 144 mojo::InterfaceRequest<mojom::ProcessControl> request);
144 145
145 gpu::GpuPreferences gpu_preferences_; 146 gpu::GpuPreferences gpu_preferences_;
146 147
147 // Set this flag to true if a fatal error occurred before we receive the 148 // Set this flag to true if a fatal error occurred before we receive the
148 // OnInitialize message, in which case we just declare ourselves DOA. 149 // OnInitialize message, in which case we just declare ourselves DOA.
(...skipping 30 matching lines...) Expand all
179 180
180 // Bindings to the mojom::ProcessControl impl. 181 // Bindings to the mojom::ProcessControl impl.
181 mojo::BindingSet<mojom::ProcessControl> process_control_bindings_; 182 mojo::BindingSet<mojom::ProcessControl> process_control_bindings_;
182 183
183 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); 184 DISALLOW_COPY_AND_ASSIGN(GpuChildThread);
184 }; 185 };
185 186
186 } // namespace content 187 } // namespace content
187 188
188 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ 189 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_
OLDNEW
« no previous file with comments | « content/content_common.gypi ('k') | content/gpu/gpu_child_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698