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

Side by Side Diff: ui/compositor/layer.cc

Issue 227413011: Remove old texture path in TextureLayer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ui/compositor/layer.h" 5 #include "ui/compositor/layer.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 } 645 }
646 646
647 if (delegate_) 647 if (delegate_)
648 delegate_->OnPaintLayer(canvas.get()); 648 delegate_->OnPaintLayer(canvas.get());
649 if (scale_content) 649 if (scale_content)
650 canvas->Restore(); 650 canvas->Restore();
651 } 651 }
652 652
653 bool Layer::FillsBoundsCompletely() const { return fills_bounds_completely_; } 653 bool Layer::FillsBoundsCompletely() const { return fills_bounds_completely_; }
654 654
655 unsigned Layer::PrepareTexture() {
656 NOTREACHED();
657 return 0;
658 }
659
660 bool Layer::PrepareTextureMailbox( 655 bool Layer::PrepareTextureMailbox(
661 cc::TextureMailbox* mailbox, 656 cc::TextureMailbox* mailbox,
662 scoped_ptr<cc::SingleReleaseCallback>* release_callback, 657 scoped_ptr<cc::SingleReleaseCallback>* release_callback,
663 bool use_shared_memory) { 658 bool use_shared_memory) {
664 if (!mailbox_release_callback_.get()) 659 if (!mailbox_release_callback_.get())
665 return false; 660 return false;
666 *mailbox = mailbox_; 661 *mailbox = mailbox_;
667 *release_callback = mailbox_release_callback_.Pass(); 662 *release_callback = mailbox_release_callback_.Pass();
668 return true; 663 return true;
669 } 664 }
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
946 cc_layer_->SetBounds(ConvertSizeToPixel(this, size)); 941 cc_layer_->SetBounds(ConvertSizeToPixel(this, size));
947 } 942 }
948 943
949 void Layer::RecomputePosition() { 944 void Layer::RecomputePosition() {
950 cc_layer_->SetPosition(gfx::ScalePoint( 945 cc_layer_->SetPosition(gfx::ScalePoint(
951 gfx::PointF(bounds_.x(), bounds_.y()), 946 gfx::PointF(bounds_.x(), bounds_.y()),
952 device_scale_factor_)); 947 device_scale_factor_));
953 } 948 }
954 949
955 } // namespace ui 950 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698