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

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

Issue 1304303002: Mac Overlays: Add sandwich strategy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@overlay_debug
Patch Set: Ready for pre-review Created 5 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 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/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 138
139 // Notifies frame-rate smoothness preference. If true, all non-critical 139 // Notifies frame-rate smoothness preference. If true, all non-critical
140 // processing should be stopped, or lowered in priority. 140 // processing should be stopped, or lowered in priority.
141 virtual void UpdateSmoothnessTakesPriority(bool prefer_smoothness) {} 141 virtual void UpdateSmoothnessTakesPriority(bool prefer_smoothness) {}
142 142
143 bool HasClient() { return !!client_; } 143 bool HasClient() { return !!client_; }
144 144
145 // Get the class capable of informing cc of hardware overlay capability. 145 // Get the class capable of informing cc of hardware overlay capability.
146 virtual OverlayCandidateValidator* GetOverlayCandidateValidator() const; 146 virtual OverlayCandidateValidator* GetOverlayCandidateValidator() const;
147 147
148 // Get the texture for the main image's overlay.
149 virtual unsigned GetOverlayTextureId() const;
150
148 void DidLoseOutputSurface(); 151 void DidLoseOutputSurface();
149 void SetMemoryPolicy(const ManagedMemoryPolicy& policy); 152 void SetMemoryPolicy(const ManagedMemoryPolicy& policy);
150 153
151 // Support for a pull-model where draws are requested by the output surface. 154 // Support for a pull-model where draws are requested by the output surface.
152 // 155 //
153 // OutputSurface::Invalidate is called by the compositor to notify that 156 // OutputSurface::Invalidate is called by the compositor to notify that
154 // there's new content. 157 // there's new content.
155 virtual void Invalidate() {} 158 virtual void Invalidate() {}
156 159
157 // Updates the worker context provider's visibility, freeing GPU resources if 160 // Updates the worker context provider's visibility, freeing GPU resources if
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 bool external_stencil_test_enabled_; 194 bool external_stencil_test_enabled_;
192 195
193 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_; 196 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_;
194 197
195 DISALLOW_COPY_AND_ASSIGN(OutputSurface); 198 DISALLOW_COPY_AND_ASSIGN(OutputSurface);
196 }; 199 };
197 200
198 } // namespace cc 201 } // namespace cc
199 202
200 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ 203 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698