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

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

Issue 636003002: Clean up GPU back-pressure with remote CALayers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: O(1) more compile issue Created 6 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
« no previous file with comments | « no previous file | content/browser/compositor/browser_compositor_ca_layer_tree_mac.mm » ('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_BROWSER_COMPOSITOR_CA_LAYER_TREE_MAC_H_ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_CA_LAYER_TREE_MAC_H_
6 #define CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_CA_LAYER_TREE_MAC_H_ 6 #define CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_CA_LAYER_TREE_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 19 matching lines...) Expand all
30 void ResetClient(); 30 void ResetClient();
31 31
32 ui::Compositor* compositor() const { return compositor_.get(); } 32 ui::Compositor* compositor() const { return compositor_.get(); }
33 33
34 // Return true if the last frame swapped has a size in DIP of |dip_size|. 34 // Return true if the last frame swapped has a size in DIP of |dip_size|.
35 bool HasFrameOfSize(const gfx::Size& dip_size) const; 35 bool HasFrameOfSize(const gfx::Size& dip_size) const;
36 36
37 // Return the CGL renderer ID for the surface, if one is available. 37 // Return the CGL renderer ID for the surface, if one is available.
38 int GetRendererID() const; 38 int GetRendererID() const;
39 39
40 // Return true if the renderer should not be throttled by GPU back-pressure.
41 bool IsRendererThrottlingDisabled() const;
42
40 // Mark a bracket in which new frames are being pumped in a restricted nested 43 // Mark a bracket in which new frames are being pumped in a restricted nested
41 // run loop. 44 // run loop.
42 void BeginPumpingFrames(); 45 void BeginPumpingFrames();
43 void EndPumpingFrames(); 46 void EndPumpingFrames();
44 47
45 void GotAcceleratedFrame( 48 void GotAcceleratedFrame(
46 uint64 surface_handle, int output_surface_id, 49 uint64 surface_handle, int output_surface_id,
47 const std::vector<ui::LatencyInfo>& latency_info, 50 const std::vector<ui::LatencyInfo>& latency_info,
48 gfx::Size pixel_size, float scale_factor); 51 gfx::Size pixel_size, float scale_factor);
49 52
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 int accelerated_output_surface_id_; 109 int accelerated_output_surface_id_;
107 std::vector<ui::LatencyInfo> accelerated_latency_info_; 110 std::vector<ui::LatencyInfo> accelerated_latency_info_;
108 111
109 // The size in DIP of the last swap received from |compositor_|. 112 // The size in DIP of the last swap received from |compositor_|.
110 gfx::Size last_swap_size_dip_; 113 gfx::Size last_swap_size_dip_;
111 }; 114 };
112 115
113 } // namespace content 116 } // namespace content
114 117
115 #endif // CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_CA_LAYER_TREE_MAC_H_ 118 #endif // CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_CA_LAYER_TREE_MAC_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/compositor/browser_compositor_ca_layer_tree_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698