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

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

Issue 1418273002: cc: Move draw params from SetExternalDrawConstraints to OnDraw (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: EXPECT_SCOPED 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
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.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/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 float device_scale_factor_; 184 float device_scale_factor_;
185 bool has_alpha_; 185 bool has_alpha_;
186 base::ThreadChecker client_thread_checker_; 186 base::ThreadChecker client_thread_checker_;
187 187
188 void CommitVSyncParameters(base::TimeTicks timebase, 188 void CommitVSyncParameters(base::TimeTicks timebase,
189 base::TimeDelta interval); 189 base::TimeDelta interval);
190 190
191 void SetNeedsRedrawRect(const gfx::Rect& damage_rect); 191 void SetNeedsRedrawRect(const gfx::Rect& damage_rect);
192 void ReclaimResources(const CompositorFrameAck* ack); 192 void ReclaimResources(const CompositorFrameAck* ack);
193 void SetExternalStencilTest(bool enabled); 193 void SetExternalStencilTest(bool enabled);
194 void SetExternalDrawConstraints(
195 const gfx::Transform& transform,
196 const gfx::Rect& viewport,
197 const gfx::Rect& clip,
198 const gfx::Rect& viewport_rect_for_tile_priority,
199 const gfx::Transform& transform_for_tile_priority,
200 bool resourceless_software_draw);
201 void DetachFromClientInternal(); 194 void DetachFromClientInternal();
202 195
203 private: 196 private:
204 bool external_stencil_test_enabled_; 197 bool external_stencil_test_enabled_;
205 198
206 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_; 199 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_;
207 200
208 DISALLOW_COPY_AND_ASSIGN(OutputSurface); 201 DISALLOW_COPY_AND_ASSIGN(OutputSurface);
209 }; 202 };
210 203
211 } // namespace cc 204 } // namespace cc
212 205
213 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ 206 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/output/output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698