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

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

Issue 1963263002: Fix Mac resize, delete more Mac code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 // BrowserCompositorOutputSurface 47 // BrowserCompositorOutputSurface
48 void OnReflectorChanged() override; 48 void OnReflectorChanged() override;
49 base::Closure CreateCompositionStartedCallback() override; 49 base::Closure CreateCompositionStartedCallback() override;
50 void OnGpuSwapBuffersCompleted( 50 void OnGpuSwapBuffersCompleted(
51 const std::vector<ui::LatencyInfo>& latency_info, 51 const std::vector<ui::LatencyInfo>& latency_info,
52 gfx::SwapResult result, 52 gfx::SwapResult result,
53 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac) override{}; 53 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac) override{};
54 #if defined(OS_MACOSX) 54 #if defined(OS_MACOSX)
55 void SetSurfaceSuspendedForRecycle(bool suspended) override {}; 55 void SetSurfaceSuspendedForRecycle(bool suspended) override {};
56 bool SurfaceShouldNotShowFramesAfterSuspendForRecycle() const override;
57 #endif 56 #endif
58 57
59 uint32_t fbo_; 58 uint32_t fbo_;
60 bool is_backbuffer_discarded_; 59 bool is_backbuffer_discarded_;
61 std::unique_ptr<ReflectorTexture> reflector_texture_; 60 std::unique_ptr<ReflectorTexture> reflector_texture_;
62 61
63 base::WeakPtrFactory<OffscreenBrowserCompositorOutputSurface> 62 base::WeakPtrFactory<OffscreenBrowserCompositorOutputSurface>
64 weak_ptr_factory_; 63 weak_ptr_factory_;
65 64
66 private: 65 private:
67 DISALLOW_COPY_AND_ASSIGN(OffscreenBrowserCompositorOutputSurface); 66 DISALLOW_COPY_AND_ASSIGN(OffscreenBrowserCompositorOutputSurface);
68 }; 67 };
69 68
70 } // namespace content 69 } // namespace content
71 70
72 #endif // CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFAC E_H_ 71 #endif // CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFAC E_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698