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 #include "cc/trees/layer_tree_host_impl.h" | 5 #include "cc/trees/layer_tree_host_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 1913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1924 output_surface_.reset(); | 1924 output_surface_.reset(); |
1925 | 1925 |
1926 if (!output_surface->BindToClient(this)) | 1926 if (!output_surface->BindToClient(this)) |
1927 return false; | 1927 return false; |
1928 | 1928 |
1929 scoped_ptr<ResourceProvider> resource_provider = | 1929 scoped_ptr<ResourceProvider> resource_provider = |
1930 ResourceProvider::Create(output_surface.get(), | 1930 ResourceProvider::Create(output_surface.get(), |
1931 shared_bitmap_manager_, | 1931 shared_bitmap_manager_, |
1932 settings_.highp_threshold_min, | 1932 settings_.highp_threshold_min, |
1933 settings_.use_rgba_4444_textures, | 1933 settings_.use_rgba_4444_textures, |
1934 settings_.texture_id_allocation_chunk_size); | 1934 settings_.texture_id_allocation_chunk_size, |
| 1935 settings_.use_distance_field_text); |
1935 | 1936 |
1936 if (output_surface->capabilities().deferred_gl_initialization) | 1937 if (output_surface->capabilities().deferred_gl_initialization) |
1937 EnforceZeroBudget(true); | 1938 EnforceZeroBudget(true); |
1938 | 1939 |
1939 bool skip_gl_renderer = false; | 1940 bool skip_gl_renderer = false; |
1940 CreateAndSetRenderer( | 1941 CreateAndSetRenderer( |
1941 output_surface.get(), resource_provider.get(), skip_gl_renderer); | 1942 output_surface.get(), resource_provider.get(), skip_gl_renderer); |
1942 | 1943 |
1943 transfer_buffer_memory_limit_ = | 1944 transfer_buffer_memory_limit_ = |
1944 GetMaxTransferBufferUsageBytes(output_surface->context_provider().get()); | 1945 GetMaxTransferBufferUsageBytes(output_surface->context_provider().get()); |
(...skipping 1184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3129 swap_promise_monitor_.erase(monitor); | 3130 swap_promise_monitor_.erase(monitor); |
3130 } | 3131 } |
3131 | 3132 |
3132 void LayerTreeHostImpl::NotifySwapPromiseMonitorsOfSetNeedsRedraw() { | 3133 void LayerTreeHostImpl::NotifySwapPromiseMonitorsOfSetNeedsRedraw() { |
3133 std::set<SwapPromiseMonitor*>::iterator it = swap_promise_monitor_.begin(); | 3134 std::set<SwapPromiseMonitor*>::iterator it = swap_promise_monitor_.begin(); |
3134 for (; it != swap_promise_monitor_.end(); it++) | 3135 for (; it != swap_promise_monitor_.end(); it++) |
3135 (*it)->OnSetNeedsRedrawOnImpl(); | 3136 (*it)->OnSetNeedsRedrawOnImpl(); |
3136 } | 3137 } |
3137 | 3138 |
3138 } // namespace cc | 3139 } // namespace cc |
OLD | NEW |