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

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

Issue 1962493002: Make Mac swap code like other platforms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate review feedback 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 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 void ResizeDisplay(ui::Compositor* compositor, 65 void ResizeDisplay(ui::Compositor* compositor,
66 const gfx::Size& size) override; 66 const gfx::Size& size) override;
67 67
68 // ImageTransportFactory implementation. 68 // ImageTransportFactory implementation.
69 ui::ContextFactory* GetContextFactory() override; 69 ui::ContextFactory* GetContextFactory() override;
70 cc::SurfaceManager* GetSurfaceManager() override; 70 cc::SurfaceManager* GetSurfaceManager() override;
71 display_compositor::GLHelper* GetGLHelper() override; 71 display_compositor::GLHelper* GetGLHelper() override;
72 void AddObserver(ImageTransportFactoryObserver* observer) override; 72 void AddObserver(ImageTransportFactoryObserver* observer) override;
73 void RemoveObserver(ImageTransportFactoryObserver* observer) override; 73 void RemoveObserver(ImageTransportFactoryObserver* observer) override;
74 #if defined(OS_MACOSX) 74 #if defined(OS_MACOSX)
75 void OnGpuSwapBuffersCompleted(
76 gpu::SurfaceHandle surface_handle,
77 const std::vector<ui::LatencyInfo>& latency_info,
78 gfx::SwapResult result) override;
79 void SetCompositorSuspendedForRecycle(ui::Compositor* compositor, 75 void SetCompositorSuspendedForRecycle(ui::Compositor* compositor,
80 bool suspended) override; 76 bool suspended) override;
81 bool SurfaceShouldNotShowFramesAfterSuspendForRecycle( 77 bool SurfaceShouldNotShowFramesAfterSuspendForRecycle(
82 gpu::SurfaceHandle surface_handle) const override; 78 gpu::SurfaceHandle surface_handle) const override;
83 #endif 79 #endif
84 80
85 private: 81 private:
86 struct PerCompositorData; 82 struct PerCompositorData;
87 83
88 PerCompositorData* CreatePerCompositorData(ui::Compositor* compositor); 84 PerCompositorData* CreatePerCompositorData(ui::Compositor* compositor);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 #endif 121 #endif
126 122
127 base::WeakPtrFactory<GpuProcessTransportFactory> callback_factory_; 123 base::WeakPtrFactory<GpuProcessTransportFactory> callback_factory_;
128 124
129 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory); 125 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory);
130 }; 126 };
131 127
132 } // namespace content 128 } // namespace content
133 129
134 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_ 130 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698