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

Side by Side Diff: cc/trees/layer_tree_settings.h

Issue 1251693003: cc: Fix the format of GpuMemoryBuffer for SurfaceTexture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move the targets to ResourceProvider and fix the nits Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_TREES_LAYER_TREE_SETTINGS_H_ 5 #ifndef CC_TREES_LAYER_TREE_SETTINGS_H_
6 #define CC_TREES_LAYER_TREE_SETTINGS_H_ 6 #define CC_TREES_LAYER_TREE_SETTINGS_H_
7 7
8 #include <vector>
9
8 #include "base/basictypes.h" 10 #include "base/basictypes.h"
9 #include "cc/base/cc_export.h" 11 #include "cc/base/cc_export.h"
10 #include "cc/debug/layer_tree_debug_state.h" 12 #include "cc/debug/layer_tree_debug_state.h"
11 #include "cc/output/renderer_settings.h" 13 #include "cc/output/renderer_settings.h"
12 #include "cc/scheduler/scheduler_settings.h" 14 #include "cc/scheduler/scheduler_settings.h"
13 #include "third_party/skia/include/core/SkColor.h" 15 #include "third_party/skia/include/core/SkColor.h"
14 #include "ui/gfx/geometry/size.h" 16 #include "ui/gfx/geometry/size.h"
15 17
16 namespace cc { 18 namespace cc {
17 19
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 size_t max_tiles_for_interest_area; 72 size_t max_tiles_for_interest_area;
71 float skewport_target_time_in_seconds; 73 float skewport_target_time_in_seconds;
72 int skewport_extrapolation_limit_in_content_pixels; 74 int skewport_extrapolation_limit_in_content_pixels;
73 size_t max_unused_resource_memory_percentage; 75 size_t max_unused_resource_memory_percentage;
74 size_t max_memory_for_prepaint_percentage; 76 size_t max_memory_for_prepaint_percentage;
75 bool strict_layer_property_change_checking; 77 bool strict_layer_property_change_checking;
76 bool use_one_copy; 78 bool use_one_copy;
77 bool use_zero_copy; 79 bool use_zero_copy;
78 bool use_persistent_map_for_gpu_memory_buffers; 80 bool use_persistent_map_for_gpu_memory_buffers;
79 bool enable_elastic_overscroll; 81 bool enable_elastic_overscroll;
80 unsigned use_image_texture_target; 82 // an array of image texture targets for each GpuMemoryBuffer format
reveman 2015/07/28 08:58:26 nit: s/an array../An array/ and s/format/format./
83 std::vector<unsigned> use_image_texture_targets;
piman 2015/07/28 16:33:22 Why not an array? The size is known statically.
jchen10 2015/07/29 04:33:47 I had wished to use an array from the start. But g
81 bool ignore_root_layer_flings; 84 bool ignore_root_layer_flings;
82 size_t scheduled_raster_task_limit; 85 size_t scheduled_raster_task_limit;
83 bool use_occlusion_for_tile_prioritization; 86 bool use_occlusion_for_tile_prioritization;
84 bool record_full_layer; 87 bool record_full_layer;
85 bool use_display_lists; 88 bool use_display_lists;
86 bool verify_property_trees; 89 bool verify_property_trees;
87 bool gather_pixel_refs; 90 bool gather_pixel_refs;
88 bool use_compositor_animation_timelines; 91 bool use_compositor_animation_timelines;
89 bool invert_viewport_scroll_order; 92 bool invert_viewport_scroll_order;
90 bool wait_for_beginframe_interval; 93 bool wait_for_beginframe_interval;
91 94
92 LayerTreeDebugState initial_debug_state; 95 LayerTreeDebugState initial_debug_state;
93 96
94 SchedulerSettings ToSchedulerSettings() const; 97 SchedulerSettings ToSchedulerSettings() const;
95 }; 98 };
96 99
97 } // namespace cc 100 } // namespace cc
98 101
99 #endif // CC_TREES_LAYER_TREE_SETTINGS_H_ 102 #endif // CC_TREES_LAYER_TREE_SETTINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698