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

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

Issue 547283003: [Ash] Copy alpha_shape when recreating layers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 196
197 // Return the target grayscale if animator is running, or the current 197 // Return the target grayscale if animator is running, or the current
198 // grayscale otherwise. 198 // grayscale otherwise.
199 float GetTargetGrayscale() const; 199 float GetTargetGrayscale() const;
200 200
201 // Zoom the background by a factor of |zoom|. The effect is blended along the 201 // Zoom the background by a factor of |zoom|. The effect is blended along the
202 // edge across |inset| pixels. 202 // edge across |inset| pixels.
203 void SetBackgroundZoom(float zoom, int inset); 203 void SetBackgroundZoom(float zoom, int inset);
204 204
205 // Set the shape of this layer. 205 // Set the shape of this layer.
206 SkRegion* alpha_shape() const;
206 void SetAlphaShape(scoped_ptr<SkRegion> region); 207 void SetAlphaShape(scoped_ptr<SkRegion> region);
207 208
208 // Invert the layer. 209 // Invert the layer.
209 bool layer_inverted() const { return layer_inverted_; } 210 bool layer_inverted() const { return layer_inverted_; }
210 void SetLayerInverted(bool inverted); 211 void SetLayerInverted(bool inverted);
211 212
212 // Return the target opacity if animator is running, or the current opacity 213 // Return the target opacity if animator is running, or the current opacity
213 // otherwise. 214 // otherwise.
214 float GetTargetOpacity() const; 215 float GetTargetOpacity() const;
215 216
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 // The size of the frame or texture in DIP, set when SetShowDelegatedContent 513 // The size of the frame or texture in DIP, set when SetShowDelegatedContent
513 // or SetTextureMailbox was called. 514 // or SetTextureMailbox was called.
514 gfx::Size frame_size_in_dip_; 515 gfx::Size frame_size_in_dip_;
515 516
516 DISALLOW_COPY_AND_ASSIGN(Layer); 517 DISALLOW_COPY_AND_ASSIGN(Layer);
517 }; 518 };
518 519
519 } // namespace ui 520 } // namespace ui
520 521
521 #endif // UI_COMPOSITOR_LAYER_H_ 522 #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