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

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

Issue 963223002: ui: Pass correct image texture target and one-copy settings to cc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: usetexturetarget: exportswitch Created 5 years, 9 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 CreateOffscreenCommandBufferContext(); 43 CreateOffscreenCommandBufferContext();
44 44
45 // ui::ContextFactory implementation. 45 // ui::ContextFactory implementation.
46 void CreateOutputSurface(base::WeakPtr<ui::Compositor> compositor) override; 46 void CreateOutputSurface(base::WeakPtr<ui::Compositor> compositor) override;
47 scoped_ptr<ui::Reflector> CreateReflector(ui::Compositor* source, 47 scoped_ptr<ui::Reflector> CreateReflector(ui::Compositor* source,
48 ui::Layer* target) override; 48 ui::Layer* target) override;
49 void RemoveReflector(ui::Reflector* reflector) override; 49 void RemoveReflector(ui::Reflector* reflector) override;
50 void RemoveCompositor(ui::Compositor* compositor) override; 50 void RemoveCompositor(ui::Compositor* compositor) override;
51 scoped_refptr<cc::ContextProvider> SharedMainThreadContextProvider() override; 51 scoped_refptr<cc::ContextProvider> SharedMainThreadContextProvider() override;
52 bool DoesCreateTestContexts() override; 52 bool DoesCreateTestContexts() override;
53 uint32 GetImageTextureTarget() override;
53 cc::SharedBitmapManager* GetSharedBitmapManager() override; 54 cc::SharedBitmapManager* GetSharedBitmapManager() override;
54 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override; 55 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override;
55 scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() override; 56 scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() override;
56 void ResizeDisplay(ui::Compositor* compositor, 57 void ResizeDisplay(ui::Compositor* compositor,
57 const gfx::Size& size) override; 58 const gfx::Size& size) override;
58 59
59 // ImageTransportFactory implementation. 60 // ImageTransportFactory implementation.
60 ui::ContextFactory* GetContextFactory() override; 61 ui::ContextFactory* GetContextFactory() override;
61 gfx::GLSurfaceHandle GetSharedSurfaceHandle() override; 62 gfx::GLSurfaceHandle GetSharedSurfaceHandle() override;
62 cc::SurfaceManager* GetSurfaceManager() override; 63 cc::SurfaceManager* GetSurfaceManager() override;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 IDMap<BrowserCompositorOutputSurface> output_surface_map_; 97 IDMap<BrowserCompositorOutputSurface> output_surface_map_;
97 98
98 base::WeakPtrFactory<GpuProcessTransportFactory> callback_factory_; 99 base::WeakPtrFactory<GpuProcessTransportFactory> callback_factory_;
99 100
100 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory); 101 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory);
101 }; 102 };
102 103
103 } // namespace content 104 } // namespace content
104 105
105 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_ 106 #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