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

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

Issue 1251693003: cc: Fix the format of GpuMemoryBuffer for SurfaceTexture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
« no previous file with comments | « cc/trees/layer_tree_settings.h ('k') | components/html_viewer/web_layer_tree_view_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "cc/trees/layer_tree_settings.h" 5 #include "cc/trees/layer_tree_settings.h"
6 6
7 #include <GLES2/gl2.h> 7 #include <GLES2/gl2.h>
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
13 #include "ui/gfx/buffer_types.h"
13 14
14 namespace cc { 15 namespace cc {
15 16
16 LayerSettings::LayerSettings() : use_compositor_animation_timelines(false) { 17 LayerSettings::LayerSettings() : use_compositor_animation_timelines(false) {
17 } 18 }
18 19
19 LayerSettings::~LayerSettings() { 20 LayerSettings::~LayerSettings() {
20 } 21 }
21 22
22 LayerTreeSettings::LayerTreeSettings() 23 LayerTreeSettings::LayerTreeSettings()
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 tiling_interest_area_padding(3000), 55 tiling_interest_area_padding(3000),
55 skewport_target_time_in_seconds(1.0f), 56 skewport_target_time_in_seconds(1.0f),
56 skewport_extrapolation_limit_in_content_pixels(2000), 57 skewport_extrapolation_limit_in_content_pixels(2000),
57 max_unused_resource_memory_percentage(100), 58 max_unused_resource_memory_percentage(100),
58 max_memory_for_prepaint_percentage(100), 59 max_memory_for_prepaint_percentage(100),
59 strict_layer_property_change_checking(false), 60 strict_layer_property_change_checking(false),
60 use_one_copy(true), 61 use_one_copy(true),
61 use_zero_copy(false), 62 use_zero_copy(false),
62 use_persistent_map_for_gpu_memory_buffers(false), 63 use_persistent_map_for_gpu_memory_buffers(false),
63 enable_elastic_overscroll(false), 64 enable_elastic_overscroll(false),
64 use_image_texture_target(GL_TEXTURE_2D), 65 use_image_texture_targets(
66 static_cast<size_t>(gfx::BufferFormat::LAST) + 1,
67 GL_TEXTURE_2D),
65 ignore_root_layer_flings(false), 68 ignore_root_layer_flings(false),
66 scheduled_raster_task_limit(32), 69 scheduled_raster_task_limit(32),
67 use_occlusion_for_tile_prioritization(false), 70 use_occlusion_for_tile_prioritization(false),
68 record_full_layer(false), 71 record_full_layer(false),
69 use_display_lists(false), 72 use_display_lists(false),
70 verify_property_trees(false), 73 verify_property_trees(false),
71 gather_pixel_refs(false), 74 gather_pixel_refs(false),
72 use_compositor_animation_timelines(false), 75 use_compositor_animation_timelines(false),
73 invert_viewport_scroll_order(false), 76 invert_viewport_scroll_order(false),
74 wait_for_beginframe_interval(true) {} 77 wait_for_beginframe_interval(true) {}
(...skipping 10 matching lines...) Expand all
85 timeout_and_draw_when_animation_checkerboards; 88 timeout_and_draw_when_animation_checkerboards;
86 scheduler_settings.using_synchronous_renderer_compositor = 89 scheduler_settings.using_synchronous_renderer_compositor =
87 using_synchronous_renderer_compositor; 90 using_synchronous_renderer_compositor;
88 scheduler_settings.throttle_frame_production = wait_for_beginframe_interval; 91 scheduler_settings.throttle_frame_production = wait_for_beginframe_interval;
89 scheduler_settings.background_frame_interval = 92 scheduler_settings.background_frame_interval =
90 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate); 93 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate);
91 return scheduler_settings; 94 return scheduler_settings;
92 } 95 }
93 96
94 } // namespace cc 97 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_settings.h ('k') | components/html_viewer/web_layer_tree_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698