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

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

Issue 1889153002: cc: nine patch: add occlusion support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Daniel's nits Created 4 years, 8 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
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 <string> 10 #include <string>
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 297
298 // Sets the layer's fill color. May only be called for LAYER_SOLID_COLOR. 298 // Sets the layer's fill color. May only be called for LAYER_SOLID_COLOR.
299 void SetColor(SkColor color); 299 void SetColor(SkColor color);
300 SkColor GetTargetColor(); 300 SkColor GetTargetColor();
301 SkColor background_color() const; 301 SkColor background_color() const;
302 302
303 // Updates the nine patch layer's image, aperture and border. May only be 303 // Updates the nine patch layer's image, aperture and border. May only be
304 // called for LAYER_NINE_PATCH. 304 // called for LAYER_NINE_PATCH.
305 void UpdateNinePatchLayerImage(const gfx::ImageSkia& image); 305 void UpdateNinePatchLayerImage(const gfx::ImageSkia& image);
306 void UpdateNinePatchLayerAperture(const gfx::Rect& aperture_in_dip); 306 void UpdateNinePatchLayerAperture(const gfx::Rect& aperture_in_dip);
307 void UpdateNinePatchLayerBorder(const gfx::Rect& border); 307 void UpdateNinePatchOcclusion(const gfx::Rect& rect);
sky 2016/04/18 21:10:04 These may make sense to you, but I've no idea what
llandwerlin-old 2016/04/21 09:53:14 Done.
308 308
309 // Adds |invalid_rect| to the Layer's pending invalid rect and calls 309 // Adds |invalid_rect| to the Layer's pending invalid rect and calls
310 // ScheduleDraw(). Returns false if the paint request is ignored. 310 // ScheduleDraw(). Returns false if the paint request is ignored.
311 bool SchedulePaint(const gfx::Rect& invalid_rect); 311 bool SchedulePaint(const gfx::Rect& invalid_rect);
312 312
313 // Schedules a redraw of the layer tree at the compositor. 313 // Schedules a redraw of the layer tree at the compositor.
314 // Note that this _does not_ invalidate any region of this layer; use 314 // Note that this _does not_ invalidate any region of this layer; use
315 // SchedulePaint() for that. 315 // SchedulePaint() for that.
316 void ScheduleDraw(); 316 void ScheduleDraw();
317 317
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 // The size of the frame or texture in DIP, set when SetShowDelegatedContent 506 // The size of the frame or texture in DIP, set when SetShowDelegatedContent
507 // or SetTextureMailbox was called. 507 // or SetTextureMailbox was called.
508 gfx::Size frame_size_in_dip_; 508 gfx::Size frame_size_in_dip_;
509 509
510 DISALLOW_COPY_AND_ASSIGN(Layer); 510 DISALLOW_COPY_AND_ASSIGN(Layer);
511 }; 511 };
512 512
513 } // namespace ui 513 } // namespace ui
514 514
515 #endif // UI_COMPOSITOR_LAYER_H_ 515 #endif // UI_COMPOSITOR_LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698