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

Unified Diff: cc/trees/layer_tree_host_common.h

Issue 465853004: Moving RenderSurface creation outside of CalcDrawProps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: cc/trees/layer_tree_host_common.h
diff --git a/cc/trees/layer_tree_host_common.h b/cc/trees/layer_tree_host_common.h
index c86c4aa2c788a58820e1464923a07bcc706af6a2..a9e73725b2f8000cfe90d948c4dd82d54d0bfa2b 100644
--- a/cc/trees/layer_tree_host_common.h
+++ b/cc/trees/layer_tree_host_common.h
@@ -84,6 +84,32 @@ class CC_EXPORT LayerTreeHostCommon {
LayerType* root_layer,
const gfx::Size& device_viewport_size,
RenderSurfaceLayerListType* render_surface_layer_list);
+ CalcDrawPropsInputsForTesting(
+ LayerType* root_layer,
+ const gfx::Size& device_viewport_size,
+ const gfx::Transform& device_transform,
+ float device_scale_factor,
+ float page_scale_factor,
+ const LayerType* page_scale_application_layer,
+ int max_texture_size,
+ bool can_use_lcd_text,
+ bool can_render_to_separate_surface,
+ bool can_adjust_raster_scales,
+ RenderSurfaceLayerListType* render_surface_layer_list,
+ int current_render_surface_layer_list_id)
+ : CalcDrawPropsInputs<LayerType, RenderSurfaceLayerListType>(
+ root_layer,
+ device_viewport_size,
+ device_transform,
+ device_scale_factor,
+ page_scale_factor,
+ page_scale_application_layer,
+ max_texture_size,
+ can_use_lcd_text,
+ can_render_to_separate_surface,
+ can_adjust_raster_scales,
+ render_surface_layer_list,
+ current_render_surface_layer_list_id) {}
private:
const gfx::Transform identity_transform_;
@@ -98,6 +124,8 @@ class CC_EXPORT LayerTreeHostCommon {
typedef CalcDrawPropsInputs<LayerImpl, LayerImplList> CalcDrawPropsImplInputs;
typedef CalcDrawPropsInputsForTesting<LayerImpl, LayerImplList>
CalcDrawPropsImplInputsForTesting;
+ static void CalculateDrawProperties(
+ CalcDrawPropsImplInputsForTesting* inputs);
static void CalculateDrawProperties(CalcDrawPropsImplInputs* inputs);
template <typename LayerType>

Powered by Google App Engine
This is Rietveld 408576698