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

Unified Diff: cc/layers/layer_impl.cc

Issue 13863015: Add flag for drawing layers to screen with Ganesh (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase again Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl.cc
diff --git a/cc/layers/layer_impl.cc b/cc/layers/layer_impl.cc
index 6ad5a68b1eb7e12145442134febedf80c2610151..916124ae9610bc4134a61fa2eefa600cecb7bc8a 100644
--- a/cc/layers/layer_impl.cc
+++ b/cc/layers/layer_impl.cc
@@ -194,12 +194,20 @@ void LayerImpl::AppendDebugBorderQuad(
QuadSink* quad_sink,
const SharedQuadState* shared_quad_state,
AppendQuadsData* append_quads_data) const {
- if (!ShowDebugBorders())
- return;
-
SkColor color;
float width;
GetDebugBorderProperties(&color, &width);
+ AppendDebugBorderQuad(
+ quad_sink, shared_quad_state, append_quads_data, color, width);
+}
+
+void LayerImpl::AppendDebugBorderQuad(QuadSink* quad_sink,
+ const SharedQuadState* shared_quad_state,
+ AppendQuadsData* append_quads_data,
+ SkColor color,
+ float width) const {
+ if (!ShowDebugBorders())
+ return;
gfx::Rect content_rect(content_bounds());
scoped_ptr<DebugBorderDrawQuad> debug_border_quad =
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698