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

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

Powered by Google App Engine
This is Rietveld 408576698