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

Unified Diff: skia/ext/image_operations.cc

Issue 1995983002: Fix "unused variable" warnings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: skia/ext/image_operations.cc
diff --git a/skia/ext/image_operations.cc b/skia/ext/image_operations.cc
index 985787bae38ec1a88668407329a1e0a0c0147650..26bd44e5933f2296785110206354ed12c6c0df34 100644
--- a/skia/ext/image_operations.cc
+++ b/skia/ext/image_operations.cc
@@ -160,14 +160,6 @@ class ResizeFilter {
ImageOperations::ResizeMethod method_;
- // Size of the filter support on one side only in the destination space.
- // See GetFilterSupport.
- float x_filter_support_;
- float y_filter_support_;
-
- // Subset of scaled destination bitmap to compute.
- SkIRect out_bounds_;
-
ConvolutionFilter1D x_filter_;
ConvolutionFilter1D y_filter_;
@@ -175,11 +167,12 @@ class ResizeFilter {
};
ResizeFilter::ResizeFilter(ImageOperations::ResizeMethod method,
- int src_full_width, int src_full_height,
- int dest_width, int dest_height,
+ int src_full_width,
+ int src_full_height,
+ int dest_width,
+ int dest_height,
const SkIRect& dest_subset)
- : method_(method),
- out_bounds_(dest_subset) {
+ : method_(method) {
// method_ will only ever refer to an "algorithm method".
SkASSERT((ImageOperations::RESIZE_FIRST_ALGORITHM_METHOD <= method) &&
(method <= ImageOperations::RESIZE_LAST_ALGORITHM_METHOD));

Powered by Google App Engine
This is Rietveld 408576698