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

Issue 496883002: For pattern colorspace, its base colorspace should not be a pattern colorspace (Closed)

Created:
6 years, 4 months ago by Bo Xu
Modified:
5 years, 9 months ago
Reviewers:
Tom Sepez, jun_fang
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Visibility:
Public.

Description

For pattern colorspace, its base colorspace should not be a pattern colorspace BUG=405588 R=tsepez@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/4fb24f3

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -2 lines) Patch
M core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp View 1 2 2 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Bo Xu
Hi Tom, please review this one, thanks! PDF reference 8.7.3.3 says the underlying color space ...
6 years, 4 months ago (2014-08-21 21:11:04 UTC) #1
Tom Sepez
Good. I was looking at this the other day as it turns out, and the ...
6 years, 4 months ago (2014-08-21 21:17:15 UTC) #2
Bo Xu
On 2014/08/21 21:17:15, Tom Sepez wrote: > Good. I was looking at this the other ...
6 years, 4 months ago (2014-08-21 21:43:06 UTC) #3
Tom Sepez
https://codereview.chromium.org/496883002/diff/20001/core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp File core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp (right): https://codereview.chromium.org/496883002/diff/20001/core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp#newcode861 core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp:861: PatternValue* pvalue = (PatternValue*)pBuf; can we add assert(m_pBaseCS->GetFamily() != ...
6 years, 4 months ago (2014-08-21 22:04:22 UTC) #4
Bo Xu
https://codereview.chromium.org/496883002/diff/20001/core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp File core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp (right): https://codereview.chromium.org/496883002/diff/20001/core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp#newcode861 core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp:861: PatternValue* pvalue = (PatternValue*)pBuf; On 2014/08/21 22:04:22, Tom Sepez ...
6 years, 4 months ago (2014-08-21 22:14:41 UTC) #5
Tom Sepez
lgtm
6 years, 4 months ago (2014-08-21 22:16:04 UTC) #6
Bo Xu
Committed patchset #3 manually as 4fb24f3 (presubmit successful).
6 years, 4 months ago (2014-08-21 22:19:07 UTC) #7
Tom Sepez
Looking through the file fpdf_page_colors.cpp, there are a bunch of places where the anti-pattern m_pAltCS->GetRGB(results, ...
6 years, 4 months ago (2014-08-21 22:29:53 UTC) #8
Bo Xu
6 years, 4 months ago (2014-08-21 22:33:06 UTC) #9
Message was sent while issue was closed.
On 2014/08/21 22:29:53, Tom Sepez wrote:
> Looking through the file fpdf_page_colors.cpp, there are a bunch of places
where
> the anti-pattern
> 
>     m_pAltCS->GetRGB(results, R, G, B);
>     return TRUE;
> 
> occurs.  A follow-up CL should probably change all these to
> 
>     return m_pAltCS->GetRGB(results, R, G, B);
> 
> Though I'd like to be sure that there is sufficient testing when making the
> change.

I agree with the sufficient test. Are we going to have some sort of bitmap
comparison for quality test? This maybe good to land with that.

Powered by Google App Engine
This is Rietveld 408576698