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

Side by Side Diff: cc/layers/video_layer_impl.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/tiled_layer.cc ('k') | cc/test/tiled_layer_test_common.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 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/layers/video_layer_impl.h" 5 #include "cc/layers/video_layer_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "cc/layers/video_frame_provider_client_impl.h" 9 #include "cc/layers/video_frame_provider_client_impl.h"
10 #include "cc/quads/io_surface_draw_quad.h" 10 #include "cc/quads/io_surface_draw_quad.h"
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 frame_ = nullptr; 356 frame_ = nullptr;
357 357
358 provider_client_impl_->ReleaseLock(); 358 provider_client_impl_->ReleaseLock();
359 } 359 }
360 360
361 void VideoLayerImpl::ReleaseResources() { 361 void VideoLayerImpl::ReleaseResources() {
362 updater_ = nullptr; 362 updater_ = nullptr;
363 } 363 }
364 364
365 void VideoLayerImpl::SetNeedsRedraw() { 365 void VideoLayerImpl::SetNeedsRedraw() {
366 SetUpdateRect(gfx::UnionRects(update_rect(), gfx::RectF(bounds()))); 366 SetUpdateRect(gfx::UnionRects(update_rect(), gfx::Rect(bounds())));
367 layer_tree_impl()->SetNeedsRedraw(); 367 layer_tree_impl()->SetNeedsRedraw();
368 } 368 }
369 369
370 void VideoLayerImpl::SetProviderClientImpl( 370 void VideoLayerImpl::SetProviderClientImpl(
371 scoped_refptr<VideoFrameProviderClientImpl> provider_client_impl) { 371 scoped_refptr<VideoFrameProviderClientImpl> provider_client_impl) {
372 provider_client_impl_ = provider_client_impl; 372 provider_client_impl_ = provider_client_impl;
373 } 373 }
374 374
375 const char* VideoLayerImpl::LayerTypeAsString() const { 375 const char* VideoLayerImpl::LayerTypeAsString() const {
376 return "cc::VideoLayerImpl"; 376 return "cc::VideoLayerImpl";
377 } 377 }
378 378
379 } // namespace cc 379 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/tiled_layer.cc ('k') | cc/test/tiled_layer_test_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698