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

Unified Diff: src/codec/SkBmpRLECodec.cpp

Issue 1406223002: Create an SkAndroidCodec API separate from SkCodec (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Refactored some test code in DMSrcSink.cpp Created 5 years, 2 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: src/codec/SkBmpRLECodec.cpp
diff --git a/src/codec/SkBmpRLECodec.cpp b/src/codec/SkBmpRLECodec.cpp
index 67e262a704cae19489f0424baff6fe73329cc3ce..f07a68fef710b7438e22a60e5f69c27e4c0a91b0 100644
--- a/src/codec/SkBmpRLECodec.cpp
+++ b/src/codec/SkBmpRLECodec.cpp
@@ -8,7 +8,6 @@
#include "SkBmpRLECodec.h"
#include "SkCodecPriv.h"
#include "SkColorPriv.h"
-#include "SkScaledCodec.h"
#include "SkStream.h"
/*
@@ -198,7 +197,7 @@ size_t SkBmpRLECodec::checkForMoreData() {
void SkBmpRLECodec::setPixel(void* dst, size_t dstRowBytes,
const SkImageInfo& dstInfo, uint32_t x, uint32_t y,
uint8_t index) {
- if (is_coord_necessary(x, fSampleX, dstInfo.width())) {
+ if (is_coord_necessary(x, fSampleX, dstInfo.width(), 0)) {
// Set the row
uint32_t row = this->getDstRow(y, dstInfo.height());
@@ -231,7 +230,7 @@ void SkBmpRLECodec::setRGBPixel(void* dst, size_t dstRowBytes,
const SkImageInfo& dstInfo, uint32_t x,
uint32_t y, uint8_t red, uint8_t green,
uint8_t blue) {
- if (is_coord_necessary(x, fSampleX, dstInfo.width())) {
+ if (is_coord_necessary(x, fSampleX, dstInfo.width(), 0)) {
// Set the row
uint32_t row = this->getDstRow(y, dstInfo.height());
« no previous file with comments | « src/codec/SkBmpCodec.cpp ('k') | src/codec/SkCodecPriv.h » ('j') | src/codec/SkScaledCodec.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698