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

Side by Side Diff: src/core/SkLiteDL.cpp

Issue 2358793002: Add setBounds to SkLiteDL for Android (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « src/core/SkLiteDL.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2016 Google Inc. 2 * Copyright 2016 Google Inc.
3 * 3 *
4 * 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
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkCanvas.h" 8 #include "SkCanvas.h"
9 #include "SkData.h" 9 #include "SkData.h"
10 #include "SkDrawFilter.h" 10 #include "SkDrawFilter.h"
(...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after
822 SkRect bounds = this->getBounds(); 822 SkRect bounds = this->getBounds();
823 canvas->saveLayer(&bounds, paint); 823 canvas->saveLayer(&bounds, paint);
824 this->draw(canvas, matrix); 824 this->draw(canvas, matrix);
825 canvas->restore(); 825 canvas->restore();
826 }; 826 };
827 827
828 // TODO: single-draw specializations 828 // TODO: single-draw specializations
829 829
830 return fallback_plan(); 830 return fallback_plan();
831 } 831 }
832
833 void SkLiteDL::setBounds(const SkRect& bounds) {
834 fBounds = bounds;
835 }
OLDNEW
« no previous file with comments | « src/core/SkLiteDL.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698