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

Unified Diff: cc/resources/layer_quad.h

Issue 13051003: cpplint.py pass on cc/(base|debug|quads|resources)/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix prioritized_resource_unittest Created 7 years, 9 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 | « cc/resources/image_layer_updater.cc ('k') | cc/resources/layer_tiling_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/layer_quad.h
diff --git a/cc/resources/layer_quad.h b/cc/resources/layer_quad.h
index 9c5a116ad3abba785ac4f3f7030956ef11e152f7..8098c2096509e69e0ecffda50eabd01f5ec581ae 100644
--- a/cc/resources/layer_quad.h
+++ b/cc/resources/layer_quad.h
@@ -73,16 +73,25 @@ class CC_EXPORT LayerQuad {
const Edge& top,
const Edge& right,
const Edge& bottom);
- LayerQuad(const gfx::QuadF& quad);
+ explicit LayerQuad(const gfx::QuadF& quad);
Edge left() const { return left_; }
Edge top() const { return top_; }
Edge right() const { return right_; }
Edge bottom() const { return bottom_; }
- void InflateX(float dx) { left_.move_z(dx); right_.move_z(dx); }
- void InflateY(float dy) { top_.move_z(dy); bottom_.move_z(dy); }
- void Inflate(float d) { InflateX(d); InflateY(d); }
+ void InflateX(float dx) {
+ left_.move_z(dx);
+ right_.move_z(dx);
+ }
+ void InflateY(float dy) {
+ top_.move_z(dy);
+ bottom_.move_z(dy);
+ }
+ void Inflate(float d) {
+ InflateX(d);
+ InflateY(d);
+ }
void InflateAntiAliasingDistance() {
Inflate(kAntiAliasingInflateDistance);
}
@@ -100,6 +109,6 @@ class CC_EXPORT LayerQuad {
DISALLOW_COPY_AND_ASSIGN(LayerQuad);
};
-}
+} // namespace cc
#endif // CC_RESOURCES_LAYER_QUAD_H_
« no previous file with comments | « cc/resources/image_layer_updater.cc ('k') | cc/resources/layer_tiling_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698