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

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

Issue 1937493002: cc: 9patch: fix shadow scaling issue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix rounded corners Created 4 years, 7 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 | « mash/wm/shadow.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »
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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 307
308 // Sets the layer's fill color. May only be called for LAYER_SOLID_COLOR. 308 // Sets the layer's fill color. May only be called for LAYER_SOLID_COLOR.
309 void SetColor(SkColor color); 309 void SetColor(SkColor color);
310 SkColor GetTargetColor(); 310 SkColor GetTargetColor();
311 SkColor background_color() const; 311 SkColor background_color() const;
312 312
313 // Updates the nine patch layer's image, aperture and border. May only be 313 // Updates the nine patch layer's image, aperture and border. May only be
314 // called for LAYER_NINE_PATCH. 314 // called for LAYER_NINE_PATCH.
315 void UpdateNinePatchLayerImage(const gfx::ImageSkia& image); 315 void UpdateNinePatchLayerImage(const gfx::ImageSkia& image);
316 void UpdateNinePatchLayerAperture(const gfx::Rect& aperture_in_dip); 316 void UpdateNinePatchLayerAperture(const gfx::Rect& aperture_in_dip);
317 void UpdateNinePatchLayerBorder(const gfx::Rect& border);
317 // Updates the area completely occluded by another layer, this can be an 318 // Updates the area completely occluded by another layer, this can be an
318 // empty rectangle if nothing is occluded. 319 // empty rectangle if nothing is occluded.
319 void UpdateNinePatchOcclusion(const gfx::Rect& occlusion); 320 void UpdateNinePatchOcclusion(const gfx::Rect& occlusion);
320 321
321 // Adds |invalid_rect| to the Layer's pending invalid rect and calls 322 // Adds |invalid_rect| to the Layer's pending invalid rect and calls
322 // ScheduleDraw(). Returns false if the paint request is ignored. 323 // ScheduleDraw(). Returns false if the paint request is ignored.
323 bool SchedulePaint(const gfx::Rect& invalid_rect); 324 bool SchedulePaint(const gfx::Rect& invalid_rect);
324 325
325 // Schedules a redraw of the layer tree at the compositor. 326 // Schedules a redraw of the layer tree at the compositor.
326 // Note that this _does not_ invalidate any region of this layer; use 327 // Note that this _does not_ invalidate any region of this layer; use
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 // The size of the frame or texture in DIP, set when SetShowDelegatedContent 512 // The size of the frame or texture in DIP, set when SetShowDelegatedContent
512 // or SetTextureMailbox was called. 513 // or SetTextureMailbox was called.
513 gfx::Size frame_size_in_dip_; 514 gfx::Size frame_size_in_dip_;
514 515
515 DISALLOW_COPY_AND_ASSIGN(Layer); 516 DISALLOW_COPY_AND_ASSIGN(Layer);
516 }; 517 };
517 518
518 } // namespace ui 519 } // namespace ui
519 520
520 #endif // UI_COMPOSITOR_LAYER_H_ 521 #endif // UI_COMPOSITOR_LAYER_H_
OLDNEW
« no previous file with comments | « mash/wm/shadow.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698