Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 <limits> | |
| 8 #include <string> | 9 #include <string> |
| 9 | 10 |
| 10 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 11 #include "cc/base/cc_export.h" | 12 #include "cc/base/cc_export.h" |
| 12 #include "cc/debug/layer_tree_debug_state.h" | 13 #include "cc/debug/layer_tree_debug_state.h" |
| 13 #include "third_party/skia/include/core/SkColor.h" | 14 #include "third_party/skia/include/core/SkColor.h" |
| 14 #include "ui/gfx/size.h" | 15 #include "ui/gfx/size.h" |
| 15 | 16 |
| 16 namespace cc { | 17 namespace cc { |
| 17 | 18 |
| 19 static const size_t kDefaultMaxTransferBufferUsageBytes = | |
|
danakj
2013/08/23 23:25:39
How about making this a static member of LTSetting
kaanb
2013/08/24 00:25:01
Done.
| |
| 20 std::numeric_limits<size_t>::max(); | |
| 21 | |
| 18 class CC_EXPORT LayerTreeSettings { | 22 class CC_EXPORT LayerTreeSettings { |
| 19 public: | 23 public: |
| 20 LayerTreeSettings(); | 24 LayerTreeSettings(); |
| 21 ~LayerTreeSettings(); | 25 ~LayerTreeSettings(); |
| 22 | 26 |
| 23 bool impl_side_painting; | 27 bool impl_side_painting; |
| 24 bool allow_antialiasing; | 28 bool allow_antialiasing; |
| 25 bool throttle_frame_production; | 29 bool throttle_frame_production; |
| 26 bool begin_frame_scheduling_enabled; | 30 bool begin_frame_scheduling_enabled; |
| 27 bool using_synchronous_renderer_compositor; | 31 bool using_synchronous_renderer_compositor; |
| (...skipping 29 matching lines...) Expand all Loading... | |
| 57 bool use_pinch_zoom_scrollbars; | 61 bool use_pinch_zoom_scrollbars; |
| 58 bool use_pinch_virtual_viewport; | 62 bool use_pinch_virtual_viewport; |
| 59 size_t max_tiles_for_interest_area; | 63 size_t max_tiles_for_interest_area; |
| 60 size_t max_unused_resource_memory_percentage; | 64 size_t max_unused_resource_memory_percentage; |
| 61 int highp_threshold_min; | 65 int highp_threshold_min; |
| 62 bool force_direct_layer_drawing; // With Skia GPU backend. | 66 bool force_direct_layer_drawing; // With Skia GPU backend. |
| 63 bool strict_layer_property_change_checking; | 67 bool strict_layer_property_change_checking; |
| 64 bool use_map_image; | 68 bool use_map_image; |
| 65 std::string compositor_name; | 69 std::string compositor_name; |
| 66 bool ignore_root_layer_flings; | 70 bool ignore_root_layer_flings; |
| 71 size_t max_transfer_buffer_usage_bytes; | |
| 67 | 72 |
| 68 LayerTreeDebugState initial_debug_state; | 73 LayerTreeDebugState initial_debug_state; |
| 69 }; | 74 }; |
| 70 | 75 |
| 71 } // namespace cc | 76 } // namespace cc |
| 72 | 77 |
| 73 #endif // CC_TREES_LAYER_TREE_SETTINGS_H_ | 78 #endif // CC_TREES_LAYER_TREE_SETTINGS_H_ |
| OLD | NEW |