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

Side by Side Diff: cc/output/output_surface.h

Issue 1616953003: content: Improve thread priority for raster threads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 10 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 | « base/threading/platform_thread_android.cc ('k') | cc/trees/proxy_impl.cc » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 CC_OUTPUT_OUTPUT_SURFACE_H_ 5 #ifndef CC_OUTPUT_OUTPUT_SURFACE_H_
6 #define CC_OUTPUT_OUTPUT_SURFACE_H_ 6 #define CC_OUTPUT_OUTPUT_SURFACE_H_
7 7
8 #include <deque> 8 #include <deque>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 virtual void BindFramebuffer(); 130 virtual void BindFramebuffer();
131 131
132 // The implementation may destroy or steal the contents of the CompositorFrame 132 // The implementation may destroy or steal the contents of the CompositorFrame
133 // passed in (though it will not take ownership of the CompositorFrame 133 // passed in (though it will not take ownership of the CompositorFrame
134 // itself). For successful swaps, the implementation must call 134 // itself). For successful swaps, the implementation must call
135 // OutputSurfaceClient::DidSwapBuffers() and eventually 135 // OutputSurfaceClient::DidSwapBuffers() and eventually
136 // DidSwapBuffersComplete(). 136 // DidSwapBuffersComplete().
137 virtual void SwapBuffers(CompositorFrame* frame) = 0; 137 virtual void SwapBuffers(CompositorFrame* frame) = 0;
138 virtual void OnSwapBuffersComplete(); 138 virtual void OnSwapBuffersComplete();
139 139
140 // Notifies frame-rate smoothness preference. If true, all non-critical
141 // processing should be stopped, or lowered in priority.
142 virtual void UpdateSmoothnessTakesPriority(bool prefer_smoothness) {}
143
144 bool HasClient() { return !!client_; } 140 bool HasClient() { return !!client_; }
145 141
146 // Get the class capable of informing cc of hardware overlay capability. 142 // Get the class capable of informing cc of hardware overlay capability.
147 virtual OverlayCandidateValidator* GetOverlayCandidateValidator() const; 143 virtual OverlayCandidateValidator* GetOverlayCandidateValidator() const;
148 144
149 // Returns true if a main image overlay plane should be scheduled. 145 // Returns true if a main image overlay plane should be scheduled.
150 virtual bool IsDisplayedAsOverlayPlane() const; 146 virtual bool IsDisplayedAsOverlayPlane() const;
151 147
152 // Get the texture for the main image's overlay. 148 // Get the texture for the main image's overlay.
153 virtual unsigned GetOverlayTextureId() const; 149 virtual unsigned GetOverlayTextureId() const;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 bool external_stencil_test_enabled_; 194 bool external_stencil_test_enabled_;
199 195
200 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_; 196 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_;
201 197
202 DISALLOW_COPY_AND_ASSIGN(OutputSurface); 198 DISALLOW_COPY_AND_ASSIGN(OutputSurface);
203 }; 199 };
204 200
205 } // namespace cc 201 } // namespace cc
206 202
207 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ 203 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « base/threading/platform_thread_android.cc ('k') | cc/trees/proxy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698