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

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

Issue 317663005: Scale the ALPHA_THRESHOLD filter's region based on the device scale factor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove call to SetAlphaShape from this cl Created 6 years, 6 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 #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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 // while attached to the main layer before the main layer is deleted. 444 // while attached to the main layer before the main layer is deleted.
445 Layer* layer_mask_back_link_; 445 Layer* layer_mask_back_link_;
446 446
447 // The zoom factor to scale the layer by. Zooming is disabled when this is 447 // The zoom factor to scale the layer by. Zooming is disabled when this is
448 // set to 1. 448 // set to 1.
449 float zoom_; 449 float zoom_;
450 450
451 // Width of the border in pixels, where the scaling is blended. 451 // Width of the border in pixels, where the scaling is blended.
452 int zoom_inset_; 452 int zoom_inset_;
453 453
454 // Shape of the window. 454 // The alpha shape is a region that defines the area that is visible
455 // (and matches the area that accepts input events). The region is specified
456 // in device independent units, so it must be scaled by the
Wez 2014/06/17 01:57:48 nit: device independent units -> DIPs?
garykac 2014/07/10 23:02:24 Done.
457 // layer's |device_scale_factor|.
455 scoped_ptr<SkRegion> alpha_shape_; 458 scoped_ptr<SkRegion> alpha_shape_;
456 459
457 std::string name_; 460 std::string name_;
458 461
459 LayerDelegate* delegate_; 462 LayerDelegate* delegate_;
460 463
461 LayerOwner* owner_; 464 LayerOwner* owner_;
462 465
463 scoped_refptr<LayerAnimator> animator_; 466 scoped_refptr<LayerAnimator> animator_;
464 467
(...skipping 22 matching lines...) Expand all
487 // The size of the frame or texture in DIP, set when SetShowDelegatedContent 490 // The size of the frame or texture in DIP, set when SetShowDelegatedContent
488 // or SetTextureMailbox was called. 491 // or SetTextureMailbox was called.
489 gfx::Size frame_size_in_dip_; 492 gfx::Size frame_size_in_dip_;
490 493
491 DISALLOW_COPY_AND_ASSIGN(Layer); 494 DISALLOW_COPY_AND_ASSIGN(Layer);
492 }; 495 };
493 496
494 } // namespace ui 497 } // namespace ui
495 498
496 #endif // UI_COMPOSITOR_LAYER_H_ 499 #endif // UI_COMPOSITOR_LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698