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

Unified Diff: ui/views/view.cc

Issue 25596002: aura: Use Layer::SetShowPaintedContent to stop showing external content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: layer-showpaintedcontent: nits Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view.cc
diff --git a/ui/views/view.cc b/ui/views/view.cc
index c59c06c3ec1506e67ade42d68b119f82d995ef50..7b88bfd5f763dfa51551316ad46aa74304f71224 100644
--- a/ui/views/view.cc
+++ b/ui/views/view.cc
@@ -1341,21 +1341,6 @@ void View::SetFillsBoundsOpaquely(bool fills_bounds_opaquely) {
layer()->SetFillsBoundsOpaquely(fills_bounds_opaquely);
}
-bool View::SetExternalTexture(ui::Texture* texture) {
- DCHECK(texture);
- SetPaintToLayer(true);
-
- layer()->SetExternalTexture(texture);
-
- // Child views must not paint into the external texture. So make sure each
- // child view has its own layer to paint into.
- for (Views::iterator i = children_.begin(); i != children_.end(); ++i)
- (*i)->SetPaintToLayer(true);
-
- SchedulePaintInRect(GetLocalBounds());
- return true;
-}
-
gfx::Vector2d View::CalculateOffsetToAncestorWithLayer(
ui::Layer** layer_parent) {
if (layer()) {
« no previous file with comments | « ui/views/view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698