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

Unified Diff: gpu/command_buffer/service/texture_manager.h

Issue 2378583003: Ping watchdog thread during GpuChannel destruction (Closed)
Patch Set: Fix lifetime and use nullptr Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/service/texture_manager.h
diff --git a/gpu/command_buffer/service/texture_manager.h b/gpu/command_buffer/service/texture_manager.h
index f0d3185eceb7079141660441c69b4b8d83c754e7..f2097c9b7f1147126e862f773772ba1555a6f48d 100644
--- a/gpu/command_buffer/service/texture_manager.h
+++ b/gpu/command_buffer/service/texture_manager.h
@@ -38,6 +38,7 @@ class ErrorState;
class FeatureInfo;
class FramebufferManager;
class MailboxManager;
+class ProgressReporter;
class Texture;
class TextureManager;
class TextureRef;
@@ -765,7 +766,8 @@ class GPU_EXPORT TextureManager : public base::trace_event::MemoryDumpProvider {
GLsizei max_rectangle_texture_size,
GLsizei max_3d_texture_size,
GLsizei max_array_texture_layers,
- bool use_default_textures);
+ bool use_default_textures,
+ ProgressReporter* progress_reporter);
~TextureManager() override;
void set_framebuffer_manager(FramebufferManager* manager) {
@@ -1235,6 +1237,11 @@ class GPU_EXPORT TextureManager : public base::trace_event::MemoryDumpProvider {
uint32_t current_service_id_generation_;
+ // Used to notify the watchdog thread of progress during destruction,
+ // preventing time-outs when destruction takes a long time. May be null when
+ // using in-process command buffer.
+ ProgressReporter* progress_reporter_;
+
DISALLOW_COPY_AND_ASSIGN(TextureManager);
};

Powered by Google App Engine
This is Rietveld 408576698