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

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

Issue 1441273002: Android WebView: Crash on compositor context loss (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // Returns true if a main image overlay plane should be scheduled. 148 // Returns true if a main image overlay plane should be scheduled.
149 virtual bool IsDisplayedAsOverlayPlane() const; 149 virtual bool IsDisplayedAsOverlayPlane() const;
150 150
151 // Get the texture for the main image's overlay. 151 // Get the texture for the main image's overlay.
152 virtual unsigned GetOverlayTextureId() const; 152 virtual unsigned GetOverlayTextureId() const;
153 153
154 void DidLoseOutputSurface(); 154 virtual void DidLoseOutputSurface();
155 void SetMemoryPolicy(const ManagedMemoryPolicy& policy); 155 void SetMemoryPolicy(const ManagedMemoryPolicy& policy);
156 156
157 // Support for a pull-model where draws are requested by the output surface. 157 // Support for a pull-model where draws are requested by the output surface.
158 // 158 //
159 // OutputSurface::Invalidate is called by the compositor to notify that 159 // OutputSurface::Invalidate is called by the compositor to notify that
160 // there's new content. 160 // there's new content.
161 virtual void Invalidate() {} 161 virtual void Invalidate() {}
162 162
163 // Updates the worker context provider's visibility, freeing GPU resources if 163 // Updates the worker context provider's visibility, freeing GPU resources if
164 // appropriate. 164 // appropriate.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 bool external_stencil_test_enabled_; 197 bool external_stencil_test_enabled_;
198 198
199 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_; 199 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_;
200 200
201 DISALLOW_COPY_AND_ASSIGN(OutputSurface); 201 DISALLOW_COPY_AND_ASSIGN(OutputSurface);
202 }; 202 };
203 203
204 } // namespace cc 204 } // namespace cc
205 205
206 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ 206 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « android_webview/browser/parent_output_surface.cc ('k') | content/renderer/android/synchronous_compositor_output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698