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

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

Issue 12093067: Handle ui::Layer's visibility using cc::Layer's m_isDrawable flag (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Use the existing m_isDrawable flag Created 7 years, 10 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 | « no previous file | ui/compositor/layer.cc » ('j') | ui/compositor/layer.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef UI_COMPOSITOR_LAYER_H_ 5 #ifndef UI_COMPOSITOR_LAYER_H_
6 #define UI_COMPOSITOR_LAYER_H_ 6 #define UI_COMPOSITOR_LAYER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 void CreateWebLayer(); 334 void CreateWebLayer();
335 void RecomputeTransform(); 335 void RecomputeTransform();
336 void RecomputeDrawsContentAndUVRect(); 336 void RecomputeDrawsContentAndUVRect();
337 337
338 // Set all filters which got applied to the layer. 338 // Set all filters which got applied to the layer.
339 void SetLayerFilters(); 339 void SetLayerFilters();
340 340
341 // Set all filters which got applied to the layer background. 341 // Set all filters which got applied to the layer background.
342 void SetLayerBackgroundFilters(); 342 void SetLayerBackgroundFilters();
343 343
344 void OnParentIsDrawnChanged(bool parent_is_drawn, bool force_update);
345
344 const LayerType type_; 346 const LayerType type_;
345 347
346 Compositor* compositor_; 348 Compositor* compositor_;
347 349
348 scoped_refptr<ui::Texture> texture_; 350 scoped_refptr<ui::Texture> texture_;
349 351
350 Layer* parent_; 352 Layer* parent_;
351 353
352 // This layer's children, in bottom-to-top stacking order. 354 // This layer's children, in bottom-to-top stacking order.
353 std::vector<Layer*> children_; 355 std::vector<Layer*> children_;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 421
420 // A cached copy of |Compositor::device_scale_factor()|. 422 // A cached copy of |Compositor::device_scale_factor()|.
421 float device_scale_factor_; 423 float device_scale_factor_;
422 424
423 DISALLOW_COPY_AND_ASSIGN(Layer); 425 DISALLOW_COPY_AND_ASSIGN(Layer);
424 }; 426 };
425 427
426 } // namespace ui 428 } // namespace ui
427 429
428 #endif // UI_COMPOSITOR_LAYER_H_ 430 #endif // UI_COMPOSITOR_LAYER_H_
OLDNEW
« no previous file with comments | « no previous file | ui/compositor/layer.cc » ('j') | ui/compositor/layer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698