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

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

Issue 266743003: Add flag to enable rendering of text using signed distance fields. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix uses of ResourceProvider::Create() outside of Chrome proper. Created 6 years, 7 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/test/pixel_test.cc ('k') | cc/trees/layer_tree_host_unittest_context.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_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
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
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
OLDNEW
« no previous file with comments | « cc/test/pixel_test.cc ('k') | cc/trees/layer_tree_host_unittest_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698