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

Unified Diff: content/common/gpu/client/context_provider_command_buffer.h

Issue 1949023005: gpu: Add flag for enabling asynchronous worker context. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase fix Created 4 years, 7 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: content/common/gpu/client/context_provider_command_buffer.h
diff --git a/content/common/gpu/client/context_provider_command_buffer.h b/content/common/gpu/client/context_provider_command_buffer.h
index 17204d0992ce91e00140d5650aa824f766550465..325954fa934152c51a85a0ed4a83a2c7dc94fdaf 100644
--- a/content/common/gpu/client/context_provider_command_buffer.h
+++ b/content/common/gpu/client/context_provider_command_buffer.h
@@ -18,6 +18,7 @@
#include "content/common/gpu/client/command_buffer_metrics.h"
#include "gpu/command_buffer/client/shared_memory_limits.h"
#include "gpu/command_buffer/common/gles2_cmd_utils.h"
+#include "gpu/ipc/common/gpu_stream_constants.h"
#include "gpu/ipc/common/surface_handle.h"
#include "ui/gl/gpu_preference.h"
#include "url/gurl.h"
@@ -47,6 +48,8 @@ class CONTENT_EXPORT ContextProviderCommandBuffer
public:
ContextProviderCommandBuffer(
scoped_refptr<gpu::GpuChannelHost> channel,
+ int32_t stream_id,
+ gpu::GpuStreamPriority stream_priority,
gpu::SurfaceHandle surface_handle,
const GURL& active_url,
gfx::GpuPreference gpu_preference,
@@ -99,6 +102,8 @@ class CONTENT_EXPORT ContextProviderCommandBuffer
bool bind_succeeded_ = false;
bool bind_failed_ = false;
+ int32_t stream_id_;
+ gpu::GpuStreamPriority stream_priority_;
gpu::SurfaceHandle surface_handle_;
GURL active_url_;
gfx::GpuPreference gpu_preference_;

Powered by Google App Engine
This is Rietveld 408576698