| OLD | NEW | 
|    1  |  | 
|    2 /* |    1 /* | 
|    3  * Copyright 2012 Google Inc. |    2  * Copyright 2012 Google Inc. | 
|    4  * |    3  * | 
|    5  * Use of this source code is governed by a BSD-style license that can be |    4  * Use of this source code is governed by a BSD-style license that can be | 
|    6  * found in the LICENSE file. |    5  * found in the LICENSE file. | 
|    7  */ |    6  */ | 
|    8  |    7  | 
|    9  |    8  | 
|   10 #ifndef SKDEBUGCANVAS_H_ |    9 #ifndef SKDEBUGCANVAS_H_ | 
|   11 #define SKDEBUGCANVAS_H_ |   10 #define SKDEBUGCANVAS_H_ | 
| (...skipping 25 matching lines...) Expand all  Loading... | 
|   37      */ |   36      */ | 
|   38     void setOverdrawViz(bool overdrawViz); |   37     void setOverdrawViz(bool overdrawViz); | 
|   39     bool getOverdrawViz() const { return fOverdrawViz; } |   38     bool getOverdrawViz() const { return fOverdrawViz; } | 
|   40  |   39  | 
|   41     /** |   40     /** | 
|   42      * Set the color of the clip visualization. An alpha of zero renders the cli
     p invisible. |   41      * Set the color of the clip visualization. An alpha of zero renders the cli
     p invisible. | 
|   43      */ |   42      */ | 
|   44     void setClipVizColor(SkColor clipVizColor) { this->fClipVizColor = clipVizCo
     lor; } |   43     void setClipVizColor(SkColor clipVizColor) { this->fClipVizColor = clipVizCo
     lor; } | 
|   45     SkColor getClipVizColor() const { return fClipVizColor; } |   44     SkColor getClipVizColor() const { return fClipVizColor; } | 
|   46  |   45  | 
|   47     void setDrawGpuBatchBounds(bool drawGpuBatchBounds) {  |   46     void setDrawGpuBatchBounds(bool drawGpuBatchBounds) { | 
|   48         fDrawGpuBatchBounds = drawGpuBatchBounds;  |   47         fDrawGpuBatchBounds = drawGpuBatchBounds; | 
|   49     } |   48     } | 
|   50  |   49  | 
|   51     bool getDrawGpuBatchBounds() const { return fDrawGpuBatchBounds; } |   50     bool getDrawGpuBatchBounds() const { return fDrawGpuBatchBounds; } | 
|   52  |   51  | 
|   53     bool getAllowSimplifyClip() const { return fAllowSimplifyClip; } |   52     bool getAllowSimplifyClip() const { return fAllowSimplifyClip; } | 
|   54  |   53  | 
|   55     void setPicture(SkPicture* picture) { fPicture = picture; } |   54     void setPicture(SkPicture* picture) { fPicture = picture; } | 
|   56  |   55  | 
|   57     /** |   56     /** | 
|   58      * Enable or disable texure filtering override |   57      * Enable or disable texure filtering override | 
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  149     void toggleCommand(int index, bool toggle); |  148     void toggleCommand(int index, bool toggle); | 
|  150  |  149  | 
|  151     void setUserMatrix(SkMatrix matrix) { |  150     void setUserMatrix(SkMatrix matrix) { | 
|  152         fUserMatrix = matrix; |  151         fUserMatrix = matrix; | 
|  153     } |  152     } | 
|  154  |  153  | 
|  155     SkString clipStackData() const { return fClipStackData; } |  154     SkString clipStackData() const { return fClipStackData; } | 
|  156  |  155  | 
|  157     /** |  156     /** | 
|  158         Returns a JSON object representing up to the Nth draw, where N is less t
     han |  157         Returns a JSON object representing up to the Nth draw, where N is less t
     han | 
|  159         SkDebugCanvas::getSize(). The encoder may use the UrlDataManager to stor
     e binary data such  |  158         SkDebugCanvas::getSize(). The encoder may use the UrlDataManager to stor
     e binary data such | 
|  160         as images, referring to them via URLs embedded in the JSON. |  159         as images, referring to them via URLs embedded in the JSON. | 
|  161      */ |  160      */ | 
|  162     Json::Value toJSON(UrlDataManager& urlDataManager, int n, SkCanvas*); |  161     Json::Value toJSON(UrlDataManager& urlDataManager, int n, SkCanvas*); | 
|  163  |  162  | 
|  164     Json::Value toJSONBatchList(int n, SkCanvas*); |  163     Json::Value toJSONBatchList(int n, SkCanvas*); | 
|  165  |  164  | 
|  166 //////////////////////////////////////////////////////////////////////////////// |  165 //////////////////////////////////////////////////////////////////////////////// | 
|  167 // Inherited from SkCanvas |  166 // Inherited from SkCanvas | 
|  168 //////////////////////////////////////////////////////////////////////////////// |  167 //////////////////////////////////////////////////////////////////////////////// | 
|  169  |  168  | 
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  290     GrAuditTrail* getAuditTrail(SkCanvas*); |  289     GrAuditTrail* getAuditTrail(SkCanvas*); | 
|  291  |  290  | 
|  292     void updatePaintFilterCanvas(); |  291     void updatePaintFilterCanvas(); | 
|  293     void drawAndCollectBatches(int n, SkCanvas*); |  292     void drawAndCollectBatches(int n, SkCanvas*); | 
|  294     void cleanupAuditTrail(SkCanvas*); |  293     void cleanupAuditTrail(SkCanvas*); | 
|  295  |  294  | 
|  296     typedef SkCanvas INHERITED; |  295     typedef SkCanvas INHERITED; | 
|  297 }; |  296 }; | 
|  298  |  297  | 
|  299 #endif |  298 #endif | 
| OLD | NEW |