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

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

Issue 1821863002: Hook up ui::Compositor to Display's BeginFrameSource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Display member destruction order Created 4 years, 8 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 | « android_webview/browser/hardware_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 #include <memory> 9 #include <memory>
10 10
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 scoped_refptr<ContextProvider> worker_context_provider_; 192 scoped_refptr<ContextProvider> worker_context_provider_;
193 #if defined(ENABLE_VULKAN) 193 #if defined(ENABLE_VULKAN)
194 scoped_refptr<VulkanContextProvider> vulkan_context_provider_; 194 scoped_refptr<VulkanContextProvider> vulkan_context_provider_;
195 #endif 195 #endif
196 std::unique_ptr<SoftwareOutputDevice> software_device_; 196 std::unique_ptr<SoftwareOutputDevice> software_device_;
197 gfx::Size surface_size_; 197 gfx::Size surface_size_;
198 float device_scale_factor_; 198 float device_scale_factor_;
199 bool has_alpha_; 199 bool has_alpha_;
200 base::ThreadChecker client_thread_checker_; 200 base::ThreadChecker client_thread_checker_;
201 201
202 void CommitVSyncParameters(base::TimeTicks timebase,
203 base::TimeDelta interval);
204
205 void SetNeedsRedrawRect(const gfx::Rect& damage_rect); 202 void SetNeedsRedrawRect(const gfx::Rect& damage_rect);
206 void ReclaimResources(const CompositorFrameAck* ack); 203 void ReclaimResources(const CompositorFrameAck* ack);
207 void SetExternalStencilTest(bool enabled); 204 void SetExternalStencilTest(bool enabled);
208 void DetachFromClientInternal(); 205 void DetachFromClientInternal();
209 206
210 private: 207 private:
211 bool external_stencil_test_enabled_; 208 bool external_stencil_test_enabled_;
212 209
213 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_; 210 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_;
214 211
215 DISALLOW_COPY_AND_ASSIGN(OutputSurface); 212 DISALLOW_COPY_AND_ASSIGN(OutputSurface);
216 }; 213 };
217 214
218 } // namespace cc 215 } // namespace cc
219 216
220 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ 217 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « android_webview/browser/hardware_renderer.cc ('k') | cc/output/output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698