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

Side by Side Diff: cc/layers/texture_layer.cc

Issue 647253002: cc: Stop converting update rect from int to float to int. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: displayrectint: ccperftests Created 6 years, 2 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/layers/texture_layer.h ('k') | cc/layers/tiled_layer.h » ('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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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/layers/texture_layer.h" 5 #include "cc/layers/texture_layer.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback_helpers.h" 8 #include "base/callback_helpers.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/synchronization/lock.h" 10 #include "base/synchronization/lock.h"
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 mailbox.sync_point() != holder_ref_->holder()->mailbox().sync_point()); 166 mailbox.sync_point() != holder_ref_->holder()->mailbox().sync_point());
167 scoped_ptr<SingleReleaseCallback> release; 167 scoped_ptr<SingleReleaseCallback> release;
168 bool requires_commit = true; 168 bool requires_commit = true;
169 bool allow_mailbox_reuse = true; 169 bool allow_mailbox_reuse = true;
170 if (mailbox.IsValid()) 170 if (mailbox.IsValid())
171 release = SingleReleaseCallback::Create(base::Bind(&IgnoreReleaseCallback)); 171 release = SingleReleaseCallback::Create(base::Bind(&IgnoreReleaseCallback));
172 SetTextureMailboxInternal( 172 SetTextureMailboxInternal(
173 mailbox, release.Pass(), requires_commit, allow_mailbox_reuse); 173 mailbox, release.Pass(), requires_commit, allow_mailbox_reuse);
174 } 174 }
175 175
176 void TextureLayer::SetNeedsDisplayRect(const gfx::RectF& dirty_rect) { 176 void TextureLayer::SetNeedsDisplayRect(const gfx::Rect& dirty_rect) {
177 Layer::SetNeedsDisplayRect(dirty_rect); 177 Layer::SetNeedsDisplayRect(dirty_rect);
178 178
179 if (rate_limit_context_ && client_ && layer_tree_host() && DrawsContent()) 179 if (rate_limit_context_ && client_ && layer_tree_host() && DrawsContent())
180 layer_tree_host()->StartRateLimiter(); 180 layer_tree_host()->StartRateLimiter();
181 } 181 }
182 182
183 void TextureLayer::SetLayerTreeHost(LayerTreeHost* host) { 183 void TextureLayer::SetLayerTreeHost(LayerTreeHost* host) {
184 if (layer_tree_host() == host) { 184 if (layer_tree_host() == host) {
185 Layer::SetLayerTreeHost(host); 185 Layer::SetLayerTreeHost(host);
186 return; 186 return;
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 void TextureLayer::TextureMailboxHolder::ReturnAndReleaseOnImplThread( 333 void TextureLayer::TextureMailboxHolder::ReturnAndReleaseOnImplThread(
334 uint32 sync_point, 334 uint32 sync_point,
335 bool is_lost, 335 bool is_lost,
336 BlockingTaskRunner* main_thread_task_runner) { 336 BlockingTaskRunner* main_thread_task_runner) {
337 Return(sync_point, is_lost); 337 Return(sync_point, is_lost);
338 main_thread_task_runner->PostTask( 338 main_thread_task_runner->PostTask(
339 FROM_HERE, base::Bind(&TextureMailboxHolder::InternalRelease, this)); 339 FROM_HERE, base::Bind(&TextureMailboxHolder::InternalRelease, this));
340 } 340 }
341 341
342 } // namespace cc 342 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/texture_layer.h ('k') | cc/layers/tiled_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698