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

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: tests fixed Created 5 years, 1 month 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 gfx::Size surface_size_; 187 gfx::Size surface_size_;
188 float device_scale_factor_; 188 float device_scale_factor_;
189 base::ThreadChecker client_thread_checker_; 189 base::ThreadChecker client_thread_checker_;
190 190
191 void CommitVSyncParameters(base::TimeTicks timebase, 191 void CommitVSyncParameters(base::TimeTicks timebase,
192 base::TimeDelta interval); 192 base::TimeDelta interval);
193 193
194 void SetNeedsRedrawRect(const gfx::Rect& damage_rect); 194 void SetNeedsRedrawRect(const gfx::Rect& damage_rect);
195 void ReclaimResources(const CompositorFrameAck* ack); 195 void ReclaimResources(const CompositorFrameAck* ack);
196 void SetExternalStencilTest(bool enabled); 196 void SetExternalStencilTest(bool enabled);
197 void SetExternalDrawConstraints(
198 const gfx::Transform& transform,
199 const gfx::Rect& viewport,
200 const gfx::Rect& clip,
201 const gfx::Rect& viewport_rect_for_tile_priority,
202 const gfx::Transform& transform_for_tile_priority,
203 bool resourceless_software_draw);
204 void DetachFromClientInternal(); 197 void DetachFromClientInternal();
205 198
206 private: 199 private:
207 bool external_stencil_test_enabled_; 200 bool external_stencil_test_enabled_;
208 201
209 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_; 202 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_;
210 203
211 DISALLOW_COPY_AND_ASSIGN(OutputSurface); 204 DISALLOW_COPY_AND_ASSIGN(OutputSurface);
212 }; 205 };
213 206
214 } // namespace cc 207 } // namespace cc
215 208
216 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ 209 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698