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

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

Issue 454243002: Make GPU back-pressure work with remote CALayers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix flashes Created 6 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_BROWSER_COMPOSITOR_VIEW_PRIVATE_MAC_H_ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_VIEW_PRIVATE_MAC_H_
6 #define CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_VIEW_PRIVATE_MAC_H_ 6 #define CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_VIEW_PRIVATE_MAC_H_
7 7
8 #include <IOSurface/IOSurfaceAPI.h> 8 #include <IOSurface/IOSurfaceAPI.h>
9 9
10 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
(...skipping 15 matching lines...) Expand all
26 gfx::AcceleratedWidget widget); 26 gfx::AcceleratedWidget widget);
27 27
28 void SetClient(BrowserCompositorViewMacClient* client); 28 void SetClient(BrowserCompositorViewMacClient* client);
29 void ResetClient(); 29 void ResetClient();
30 30
31 ui::Compositor* compositor() const { return compositor_.get(); } 31 ui::Compositor* compositor() const { return compositor_.get(); }
32 32
33 // Return true if the last frame swapped has a size in DIP of |dip_size|. 33 // Return true if the last frame swapped has a size in DIP of |dip_size|.
34 bool HasFrameOfSize(const gfx::Size& dip_size) const; 34 bool HasFrameOfSize(const gfx::Size& dip_size) const;
35 35
36 // Return the CGL renderer ID for the surface, if one is available.
37 int GetRendererID() const;
38
36 // Mark a bracket in which new frames are being pumped in a restricted nested 39 // Mark a bracket in which new frames are being pumped in a restricted nested
37 // run loop. 40 // run loop.
38 void BeginPumpingFrames(); 41 void BeginPumpingFrames();
39 void EndPumpingFrames(); 42 void EndPumpingFrames();
40 43
41 void GotAcceleratedFrame( 44 void GotAcceleratedFrame(
42 uint64 surface_handle, int output_surface_id, 45 uint64 surface_handle, int output_surface_id,
43 const std::vector<ui::LatencyInfo>& latency_info, 46 const std::vector<ui::LatencyInfo>& latency_info,
44 gfx::Size pixel_size, float scale_factor); 47 gfx::Size pixel_size, float scale_factor);
45 48
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 int accelerated_output_surface_id_; 105 int accelerated_output_surface_id_;
103 std::vector<ui::LatencyInfo> accelerated_latency_info_; 106 std::vector<ui::LatencyInfo> accelerated_latency_info_;
104 107
105 // The size in DIP of the last swap received from |compositor_|. 108 // The size in DIP of the last swap received from |compositor_|.
106 gfx::Size last_swap_size_dip_; 109 gfx::Size last_swap_size_dip_;
107 }; 110 };
108 111
109 } // namespace content 112 } // namespace content
110 113
111 #endif // CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_VIEW_PRIVATE_MAC_H_ 114 #endif // CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_VIEW_PRIVATE_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698