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

Side by Side Diff: src/utils/SkDeferredCanvas.cpp

Issue 312553006: remove SkBounder -- unused and unloved (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: address review comments Created 6 years, 6 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/gpu/SkGpuDevice.cpp ('k') | src/utils/SkNWayCanvas.cpp » ('j') | 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 /* 2 /*
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "SkDeferredCanvas.h" 9 #include "SkDeferredCanvas.h"
10 10
(...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after
946 const SkPoint texs[], 946 const SkPoint texs[],
947 const SkColor colors[], SkXfermode* xmode, 947 const SkColor colors[], SkXfermode* xmode,
948 const uint16_t indices[], int indexCount, 948 const uint16_t indices[], int indexCount,
949 const SkPaint& paint) { 949 const SkPaint& paint) {
950 AutoImmediateDrawIfNeeded autoDraw(*this, &paint); 950 AutoImmediateDrawIfNeeded autoDraw(*this, &paint);
951 this->drawingCanvas()->drawVertices(vmode, vertexCount, vertices, texs, colo rs, xmode, 951 this->drawingCanvas()->drawVertices(vmode, vertexCount, vertices, texs, colo rs, xmode,
952 indices, indexCount, paint); 952 indices, indexCount, paint);
953 this->recordedDrawCommand(); 953 this->recordedDrawCommand();
954 } 954 }
955 955
956 SkBounder* SkDeferredCanvas::setBounder(SkBounder* bounder) {
957 this->drawingCanvas()->setBounder(bounder);
958 this->INHERITED::setBounder(bounder);
959 this->recordedDrawCommand();
960 return bounder;
961 }
962
963 SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) { 956 SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) {
964 this->drawingCanvas()->setDrawFilter(filter); 957 this->drawingCanvas()->setDrawFilter(filter);
965 this->INHERITED::setDrawFilter(filter); 958 this->INHERITED::setDrawFilter(filter);
966 this->recordedDrawCommand(); 959 this->recordedDrawCommand();
967 return filter; 960 return filter;
968 } 961 }
969 962
970 SkCanvas* SkDeferredCanvas::canvasForDrawIter() { 963 SkCanvas* SkDeferredCanvas::canvasForDrawIter() {
971 return this->drawingCanvas(); 964 return this->drawingCanvas();
972 } 965 }
OLDNEW
« no previous file with comments | « src/gpu/SkGpuDevice.cpp ('k') | src/utils/SkNWayCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698