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

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

Issue 1269503007: Unify graphics buffer format & usage enums for GpuMemoryBuffer & SurfaceFactoryOzone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add header to BUILD.gn Created 5 years, 4 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
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 CreateOffscreenCommandBufferContext(); 46 CreateOffscreenCommandBufferContext();
47 47
48 // ui::ContextFactory implementation. 48 // ui::ContextFactory implementation.
49 void CreateOutputSurface(base::WeakPtr<ui::Compositor> compositor) override; 49 void CreateOutputSurface(base::WeakPtr<ui::Compositor> compositor) override;
50 scoped_ptr<ui::Reflector> CreateReflector(ui::Compositor* source, 50 scoped_ptr<ui::Reflector> CreateReflector(ui::Compositor* source,
51 ui::Layer* target) override; 51 ui::Layer* target) override;
52 void RemoveReflector(ui::Reflector* reflector) override; 52 void RemoveReflector(ui::Reflector* reflector) override;
53 void RemoveCompositor(ui::Compositor* compositor) override; 53 void RemoveCompositor(ui::Compositor* compositor) override;
54 scoped_refptr<cc::ContextProvider> SharedMainThreadContextProvider() override; 54 scoped_refptr<cc::ContextProvider> SharedMainThreadContextProvider() override;
55 bool DoesCreateTestContexts() override; 55 bool DoesCreateTestContexts() override;
56 uint32 GetImageTextureTarget(gfx::GpuMemoryBuffer::Format format, 56 uint32 GetImageTextureTarget(gfx::BufferFormat format,
57 gfx::GpuMemoryBuffer::Usage 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; 67 gfx::GLSurfaceHandle GetSharedSurfaceHandle() override;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 IDMap<BrowserCompositorOutputSurface> output_surface_map_; 112 IDMap<BrowserCompositorOutputSurface> output_surface_map_;
113 113
114 base::WeakPtrFactory<GpuProcessTransportFactory> callback_factory_; 114 base::WeakPtrFactory<GpuProcessTransportFactory> callback_factory_;
115 115
116 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory); 116 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory);
117 }; 117 };
118 118
119 } // namespace content 119 } // namespace content
120 120
121 #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 | « content/browser/compositor/buffer_queue_unittest.cc ('k') | content/browser/compositor/gpu_process_transport_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698