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

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

Issue 2402173002: cc: Get rid of PostSwapBuffersComplete. (Closed)
Patch Set: postswap: . Created 4 years, 2 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H _ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H _
6 #define CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H _ 6 #define CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H _
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 bool alpha) override; 45 bool alpha) override;
46 void BindFramebuffer() override; 46 void BindFramebuffer() override;
47 void SwapBuffers(cc::OutputSurfaceFrame frame) override; 47 void SwapBuffers(cc::OutputSurfaceFrame frame) override;
48 bool IsDisplayedAsOverlayPlane() const override; 48 bool IsDisplayedAsOverlayPlane() const override;
49 unsigned GetOverlayTextureId() const override; 49 unsigned GetOverlayTextureId() const override;
50 bool SurfaceIsSuspendForRecycle() const override; 50 bool SurfaceIsSuspendForRecycle() const override;
51 uint32_t GetFramebufferCopyTextureFormat() override; 51 uint32_t GetFramebufferCopyTextureFormat() override;
52 52
53 // BrowserCompositorOutputSurface 53 // BrowserCompositorOutputSurface
54 void OnReflectorChanged() override; 54 void OnReflectorChanged() override;
55 void OnGpuSwapBuffersCompleted(
56 const std::vector<ui::LatencyInfo>& latency_info,
57 gfx::SwapResult result,
58 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac) override{};
59 #if defined(OS_MACOSX) 55 #if defined(OS_MACOSX)
60 void SetSurfaceSuspendedForRecycle(bool suspended) override {}; 56 void SetSurfaceSuspendedForRecycle(bool suspended) override {};
61 #endif 57 #endif
62 58
63 uint32_t fbo_ = 0; 59 uint32_t fbo_ = 0;
64 bool reflector_changed_ = false; 60 bool reflector_changed_ = false;
65 std::unique_ptr<ReflectorTexture> reflector_texture_; 61 std::unique_ptr<ReflectorTexture> reflector_texture_;
66 62
67 base::WeakPtrFactory<OffscreenBrowserCompositorOutputSurface> 63 base::WeakPtrFactory<OffscreenBrowserCompositorOutputSurface>
68 weak_ptr_factory_; 64 weak_ptr_factory_;
69 65
70 private: 66 private:
71 void OnSwapBuffersComplete(); 67 void OnSwapBuffersComplete();
72 68
73 DISALLOW_COPY_AND_ASSIGN(OffscreenBrowserCompositorOutputSurface); 69 DISALLOW_COPY_AND_ASSIGN(OffscreenBrowserCompositorOutputSurface);
74 }; 70 };
75 71
76 } // namespace content 72 } // namespace content
77 73
78 #endif // CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFAC E_H_ 74 #endif // CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFAC E_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698