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

Unified Diff: ui/compositor/layer.h

Issue 385123005: Change ui::wm::Shadow to use cc::NinePatchLayer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding comments for nits. Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/compositor/layer.cc » ('j') | ui/compositor/layer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer.h
diff --git a/ui/compositor/layer.h b/ui/compositor/layer.h
index 03041edb872c1f4f66cec65a457f3ebf5aecd4ba..3106894ec95cc34dbb959cb0a1c531cb0661d0d3 100644
--- a/ui/compositor/layer.h
+++ b/ui/compositor/layer.h
@@ -36,6 +36,7 @@ class CopyOutputRequest;
class DelegatedFrameProvider;
class DelegatedRendererLayer;
class Layer;
+class NinePatchLayer;
class ResourceUpdateQueue;
class SolidColorLayer;
class TextureLayer;
@@ -273,6 +274,12 @@ class COMPOSITOR_EXPORT Layer
void SetShowPaintedContent();
+ void SetShowNinePatch();
sky 2014/07/14 15:30:06 I would have expected nine patch to be a new type,
hshi1 2014/07/14 21:23:37 Done.
+
+ void UpdateNinePatchBitmap(const SkBitmap& bitmap,
sky 2014/07/14 15:30:06 You need to add descriptions of the arguments.
hshi1 2014/07/14 21:23:37 Done.
+ const gfx::Rect& aperture,
+ const gfx::Rect& border);
+
// Sets the layer's fill color. May only be called for LAYER_SOLID_COLOR.
void SetColor(SkColor color);
@@ -469,6 +476,7 @@ class COMPOSITOR_EXPORT Layer
// Ownership of the layer is held through one of the strongly typed layer
// pointers, depending on which sort of layer this is.
scoped_refptr<cc::Layer> content_layer_;
+ scoped_refptr<cc::NinePatchLayer> nine_patch_layer_;
scoped_refptr<cc::TextureLayer> texture_layer_;
scoped_refptr<cc::SolidColorLayer> solid_color_layer_;
scoped_refptr<cc::DelegatedRendererLayer> delegated_renderer_layer_;
« 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