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

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

Issue 1564703005: Implement external stencil for Android WebView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, fix pixel tests Created 4 years, 11 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 | « cc/output/gl_renderer.cc ('k') | cc/output/output_surface.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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // True if sync points for resources are needed when swapping delegated 85 // True if sync points for resources are needed when swapping delegated
86 // frames. 86 // frames.
87 bool delegated_sync_points_required; 87 bool delegated_sync_points_required;
88 }; 88 };
89 89
90 const Capabilities& capabilities() const { 90 const Capabilities& capabilities() const {
91 return capabilities_; 91 return capabilities_;
92 } 92 }
93 93
94 virtual bool HasExternalStencilTest() const; 94 virtual bool HasExternalStencilTest() const;
95 virtual void ApplyExternalStencil();
95 96
96 // Obtain the 3d context or the software device associated with this output 97 // Obtain the 3d context or the software device associated with this output
97 // surface. Either of these may return a null pointer, but not both. 98 // surface. Either of these may return a null pointer, but not both.
98 // In the event of a lost context, the entire output surface should be 99 // In the event of a lost context, the entire output surface should be
99 // recreated. 100 // recreated.
100 ContextProvider* context_provider() const { return context_provider_.get(); } 101 ContextProvider* context_provider() const { return context_provider_.get(); }
101 ContextProvider* worker_context_provider() const { 102 ContextProvider* worker_context_provider() const {
102 return worker_context_provider_.get(); 103 return worker_context_provider_.get();
103 } 104 }
104 SoftwareOutputDevice* software_device() const { 105 SoftwareOutputDevice* software_device() const {
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 bool external_stencil_test_enabled_; 198 bool external_stencil_test_enabled_;
198 199
199 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_; 200 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_;
200 201
201 DISALLOW_COPY_AND_ASSIGN(OutputSurface); 202 DISALLOW_COPY_AND_ASSIGN(OutputSurface);
202 }; 203 };
203 204
204 } // namespace cc 205 } // namespace cc
205 206
206 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ 207 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « cc/output/gl_renderer.cc ('k') | cc/output/output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698