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

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: Really revert task runner changes 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 | « no previous file | cc/output/output_surface.cc » ('j') | cc/trees/layer_tree_settings.h » ('J')
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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 174
175 struct OutputSurface::Capabilities capabilities_; 175 struct OutputSurface::Capabilities capabilities_;
176 scoped_refptr<ContextProvider> context_provider_; 176 scoped_refptr<ContextProvider> context_provider_;
177 scoped_refptr<ContextProvider> worker_context_provider_; 177 scoped_refptr<ContextProvider> worker_context_provider_;
178 scoped_ptr<SoftwareOutputDevice> software_device_; 178 scoped_ptr<SoftwareOutputDevice> software_device_;
179 gfx::Size surface_size_; 179 gfx::Size surface_size_;
180 float device_scale_factor_; 180 float device_scale_factor_;
181 bool has_alpha_; 181 bool has_alpha_;
182 base::ThreadChecker client_thread_checker_; 182 base::ThreadChecker client_thread_checker_;
183 183
184 void CommitVSyncParameters(base::TimeTicks timebase,
185 base::TimeDelta interval);
186
187 void SetNeedsRedrawRect(const gfx::Rect& damage_rect); 184 void SetNeedsRedrawRect(const gfx::Rect& damage_rect);
188 void ReclaimResources(const CompositorFrameAck* ack); 185 void ReclaimResources(const CompositorFrameAck* ack);
189 void SetExternalStencilTest(bool enabled); 186 void SetExternalStencilTest(bool enabled);
190 void DetachFromClientInternal(); 187 void DetachFromClientInternal();
191 188
192 private: 189 private:
193 bool external_stencil_test_enabled_; 190 bool external_stencil_test_enabled_;
194 191
195 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_; 192 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_;
196 193
197 DISALLOW_COPY_AND_ASSIGN(OutputSurface); 194 DISALLOW_COPY_AND_ASSIGN(OutputSurface);
198 }; 195 };
199 196
200 } // namespace cc 197 } // namespace cc
201 198
202 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ 199 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « no previous file | cc/output/output_surface.cc » ('j') | cc/trees/layer_tree_settings.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698