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

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 missing ifdefs 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
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 <queue> 10 #include <queue>
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 void OnCloseChannel(int32_t client_id); 136 void OnCloseChannel(int32_t client_id);
137 void OnLoadedShader(const std::string& shader); 137 void OnLoadedShader(const std::string& shader);
138 void OnDestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, 138 void OnDestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id,
139 int client_id, 139 int client_id,
140 const gpu::SyncToken& sync_token); 140 const gpu::SyncToken& sync_token);
141 void OnUpdateValueState(int client_id, 141 void OnUpdateValueState(int client_id,
142 unsigned int target, 142 unsigned int target,
143 const gpu::ValueState& state); 143 const gpu::ValueState& state);
144 #if defined(OS_ANDROID) 144 #if defined(OS_ANDROID)
145 void OnWakeUpGpu(); 145 void OnWakeUpGpu();
146 void OnDestroyingVideoSurface(int surface_id);
146 #endif 147 #endif
147 void OnLoseAllContexts(); 148 void OnLoseAllContexts();
148 149
149 void BindProcessControlRequest( 150 void BindProcessControlRequest(
150 mojo::InterfaceRequest<mojom::ProcessControl> request); 151 mojo::InterfaceRequest<mojom::ProcessControl> request);
151 152
152 gpu::GpuPreferences gpu_preferences_; 153 gpu::GpuPreferences gpu_preferences_;
153 154
154 // Set this flag to true if a fatal error occurred before we receive the 155 // Set this flag to true if a fatal error occurred before we receive the
155 // OnInitialize message, in which case we just declare ourselves DOA. 156 // OnInitialize message, in which case we just declare ourselves DOA.
(...skipping 30 matching lines...) Expand all
186 187
187 // Bindings to the mojom::ProcessControl impl. 188 // Bindings to the mojom::ProcessControl impl.
188 mojo::BindingSet<mojom::ProcessControl> process_control_bindings_; 189 mojo::BindingSet<mojom::ProcessControl> process_control_bindings_;
189 190
190 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); 191 DISALLOW_COPY_AND_ASSIGN(GpuChildThread);
191 }; 192 };
192 193
193 } // namespace content 194 } // namespace content
194 195
195 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ 196 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698