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

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

Issue 2775723002: Enable RGBA_4444 in GpuRasterBufferProvider (Closed)
Patch Set: comment Created 3 years, 9 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/layer_tree_pixel_resource_test.cc ('k') | no next file » | 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 <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 2219 matching lines...) Expand 10 before | Expand all | Expand 10 after
2230 *resource_pool = ResourcePool::Create( 2230 *resource_pool = ResourcePool::Create(
2231 resource_provider_.get(), GetTaskRunner(), 2231 resource_provider_.get(), GetTaskRunner(),
2232 ResourceProvider::TEXTURE_HINT_IMMUTABLE_FRAMEBUFFER, 2232 ResourceProvider::TEXTURE_HINT_IMMUTABLE_FRAMEBUFFER,
2233 ResourcePool::kDefaultExpirationDelay); 2233 ResourcePool::kDefaultExpirationDelay);
2234 2234
2235 int msaa_sample_count = use_msaa_ ? RequestedMSAASampleCount() : 0; 2235 int msaa_sample_count = use_msaa_ ? RequestedMSAASampleCount() : 0;
2236 2236
2237 *raster_buffer_provider = base::MakeUnique<GpuRasterBufferProvider>( 2237 *raster_buffer_provider = base::MakeUnique<GpuRasterBufferProvider>(
2238 compositor_context_provider, worker_context_provider, 2238 compositor_context_provider, worker_context_provider,
2239 resource_provider_.get(), settings_.use_distance_field_text, 2239 resource_provider_.get(), settings_.use_distance_field_text,
2240 msaa_sample_count, settings_.async_worker_context_enabled); 2240 msaa_sample_count, settings_.renderer_settings.preferred_tile_format,
2241 settings_.async_worker_context_enabled);
2241 return; 2242 return;
2242 } 2243 }
2243 2244
2244 bool use_zero_copy = settings_.use_zero_copy; 2245 bool use_zero_copy = settings_.use_zero_copy;
2245 // TODO(reveman): Remove this when mojo supports worker contexts. 2246 // TODO(reveman): Remove this when mojo supports worker contexts.
2246 // crbug.com/522440 2247 // crbug.com/522440
2247 if (!use_zero_copy && !worker_context_provider) { 2248 if (!use_zero_copy && !worker_context_provider) {
2248 LOG(ERROR) 2249 LOG(ERROR)
2249 << "Forcing zero-copy tile initialization as worker context is missing"; 2250 << "Forcing zero-copy tile initialization as worker context is missing";
2250 use_zero_copy = true; 2251 use_zero_copy = true;
(...skipping 1935 matching lines...) Expand 10 before | Expand all | Expand 10 after
4186 worker_context_visibility_ = 4187 worker_context_visibility_ =
4187 worker_context->CacheController()->ClientBecameVisible(); 4188 worker_context->CacheController()->ClientBecameVisible();
4188 } else { 4189 } else {
4189 worker_context->CacheController()->ClientBecameNotVisible( 4190 worker_context->CacheController()->ClientBecameNotVisible(
4190 std::move(worker_context_visibility_)); 4191 std::move(worker_context_visibility_));
4191 } 4192 }
4192 } 4193 }
4193 } 4194 }
4194 4195
4195 } // namespace cc 4196 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/layer_tree_pixel_resource_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698