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

Unified Diff: content/common/gpu/gpu_channel_manager.h

Issue 1451353002: Implement GpuArcVideoService for arc video accelerator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed dcheng's comments Created 4 years, 11 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/gpu_channel_manager.h
diff --git a/content/common/gpu/gpu_channel_manager.h b/content/common/gpu/gpu_channel_manager.h
index 81d7fbed2a2b5e90775b369f64d3e63f5b92ae8a..6b1a7fb025a58c37df1ac0e506b31f78e87e0f90 100644
--- a/content/common/gpu/gpu_channel_manager.h
+++ b/content/common/gpu/gpu_channel_manager.h
@@ -58,6 +58,9 @@ struct GPUCreateCommandBufferConfig;
struct GpuMsg_EstablishChannel_Params;
namespace content {
+#if defined(OS_CHROMEOS)
+class GpuArcVideoService;
+#endif
class GpuChannel;
class GpuMemoryBufferFactory;
class GpuWatchdog;
@@ -164,6 +167,11 @@ class CONTENT_EXPORT GpuChannelManager : public IPC::Listener,
void OnDestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id,
int client_id,
const gpu::SyncToken& sync_token);
+#if defined(OS_CHROMEOS)
+ void OnCreateArcVideoAcceleratorChannel();
+ void ArcVideoAcceleratorChannelCreated(const IPC::ChannelHandle& handle);
+ void OnShutdownArcVideoService();
+#endif
void OnUpdateValueState(int client_id,
unsigned int target,
@@ -195,6 +203,9 @@ class CONTENT_EXPORT GpuChannelManager : public IPC::Listener,
scoped_refptr<gpu::gles2::FramebufferCompletenessCache>
framebuffer_completeness_cache_;
scoped_refptr<gfx::GLSurface> default_offscreen_surface_;
+#if defined(OS_CHROMEOS)
+ scoped_ptr<GpuArcVideoService> gpu_arc_video_service_;
+#endif
GpuMemoryBufferFactory* const gpu_memory_buffer_factory_;
#if defined(OS_ANDROID)
// Last time we know the GPU was powered on. Global for tracking across all

Powered by Google App Engine
This is Rietveld 408576698