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

Side by Side Diff: content/browser/compositor/gpu_process_transport_factory.h

Issue 1365563002: Make channel preemption not require view contexts for hookup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wakeup_gpu
Patch Set: rebase Created 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/compositor/gpu_process_transport_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_
6 #define CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_ 6 #define CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/id_map.h" 10 #include "base/id_map.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 gfx::BufferUsage usage) override; 57 gfx::BufferUsage usage) override;
58 cc::SharedBitmapManager* GetSharedBitmapManager() override; 58 cc::SharedBitmapManager* GetSharedBitmapManager() override;
59 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override; 59 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override;
60 cc::TaskGraphRunner* GetTaskGraphRunner() override; 60 cc::TaskGraphRunner* GetTaskGraphRunner() override;
61 scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() override; 61 scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() override;
62 void ResizeDisplay(ui::Compositor* compositor, 62 void ResizeDisplay(ui::Compositor* compositor,
63 const gfx::Size& size) override; 63 const gfx::Size& size) override;
64 64
65 // ImageTransportFactory implementation. 65 // ImageTransportFactory implementation.
66 ui::ContextFactory* GetContextFactory() override; 66 ui::ContextFactory* GetContextFactory() override;
67 gfx::GLSurfaceHandle GetSharedSurfaceHandle() override;
68 cc::SurfaceManager* GetSurfaceManager() override; 67 cc::SurfaceManager* GetSurfaceManager() override;
69 GLHelper* GetGLHelper() override; 68 GLHelper* GetGLHelper() override;
70 void AddObserver(ImageTransportFactoryObserver* observer) override; 69 void AddObserver(ImageTransportFactoryObserver* observer) override;
71 void RemoveObserver(ImageTransportFactoryObserver* observer) override; 70 void RemoveObserver(ImageTransportFactoryObserver* observer) override;
72 #if defined(OS_MACOSX) 71 #if defined(OS_MACOSX)
73 void OnSurfaceDisplayed(int surface_id) override; 72 void OnSurfaceDisplayed(int surface_id) override;
74 void SetCompositorSuspendedForRecycle(ui::Compositor* compositor, 73 void SetCompositorSuspendedForRecycle(ui::Compositor* compositor,
75 bool suspended) override; 74 bool suspended) override;
76 bool SurfaceShouldNotShowFramesAfterSuspendForRecycle( 75 bool SurfaceShouldNotShowFramesAfterSuspendForRecycle(
77 int surface_id) const override; 76 int surface_id) const override;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 IDMap<BrowserCompositorOutputSurface> output_surface_map_; 112 IDMap<BrowserCompositorOutputSurface> output_surface_map_;
114 113
115 base::WeakPtrFactory<GpuProcessTransportFactory> callback_factory_; 114 base::WeakPtrFactory<GpuProcessTransportFactory> callback_factory_;
116 115
117 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory); 116 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory);
118 }; 117 };
119 118
120 } // namespace content 119 } // namespace content
121 120
122 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_ 121 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/compositor/gpu_process_transport_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698