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

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

Issue 2378583003: Ping watchdog thread during GpuChannel destruction (Closed)
Patch Set: remove throttling Created 4 years, 3 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/context_group.h
diff --git a/gpu/command_buffer/service/context_group.h b/gpu/command_buffer/service/context_group.h
index 43f2d4124083101c4ad59590ed0826bcb283df18..7d20e65f5aa2e1d1d71dd1e2ab2f001b23d5b28a 100644
--- a/gpu/command_buffer/service/context_group.h
+++ b/gpu/command_buffer/service/context_group.h
@@ -39,6 +39,7 @@ class MailboxManager;
class RenderbufferManager;
class PathManager;
class ProgramManager;
+class ProgressReporter;
class SamplerManager;
class ShaderManager;
class TextureManager;
@@ -59,7 +60,8 @@ class GPU_EXPORT ContextGroup : public base::RefCounted<ContextGroup> {
framebuffer_completeness_cache,
const scoped_refptr<FeatureInfo>& feature_info,
bool bind_generates_resource,
- gpu::ImageFactory* image_factory);
+ gpu::ImageFactory* image_factory,
+ std::unique_ptr<ProgressReporter> progress_reporter);
// This should only be called by GLES2Decoder. This must be paired with a
// call to destroy if it succeeds.
@@ -234,6 +236,7 @@ class GPU_EXPORT ContextGroup : public base::RefCounted<ContextGroup> {
bool QueryGLFeature(GLenum pname, GLint min_required, GLint* v);
bool QueryGLFeatureU(GLenum pname, GLint min_required, uint32_t* v);
bool HaveContexts();
+ void ReportProgress();
const GpuPreferences& gpu_preferences_;
scoped_refptr<MailboxManager> mailbox_manager_;
@@ -287,6 +290,8 @@ class GPU_EXPORT ContextGroup : public base::RefCounted<ContextGroup> {
gpu::ImageFactory* image_factory_;
+ std::unique_ptr<ProgressReporter> progress_reporter_;
+
std::vector<base::WeakPtr<gles2::GLES2Decoder> > decoders_;
// Mappings from client side IDs to service side IDs.
« no previous file with comments | « no previous file | gpu/command_buffer/service/context_group.cc » ('j') | gpu/command_buffer/service/context_group.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698