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

Unified Diff: pdf/draw_utils.h

Issue 1909383002: remove unused draw utils in pdf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove one more unused Created 4 years, 8 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
« no previous file with comments | « no previous file | pdf/draw_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/draw_utils.h
diff --git a/pdf/draw_utils.h b/pdf/draw_utils.h
index 8f91046610fca83e77fde65a8505f6f9912ab68d..618664e9472a2edb1b01e7481bf93c9b894deed2 100644
--- a/pdf/draw_utils.h
+++ b/pdf/draw_utils.h
@@ -17,44 +17,6 @@ namespace chrome_pdf {
const uint8_t kOpaqueAlpha = 0xFF;
const uint8_t kTransparentAlpha = 0x00;
-void AlphaBlend(const pp::ImageData& src,
- const pp::Rect& src_rc,
- pp::ImageData* dest,
- const pp::Point& dest_origin,
- uint8_t alpha_adjustment);
-
-// Fill rectangle with gradient horizontally or vertically. Start is a color of
-// top-left point of the rectangle, end color is a color of
-// top-right (horizontal==true) or bottom-left (horizontal==false) point.
-void GradientFill(pp::ImageData* image,
- const pp::Rect& rc,
- uint32_t start_color,
- uint32_t end_color,
- bool horizontal);
-
-// Fill dirty rectangle with gradient, where gradient color set for corners of
-// gradient rectangle. Parts of the dirty rect outside of gradient rect will
-// be unchanged.
-void GradientFill(pp::Instance* instance,
- pp::ImageData* image,
- const pp::Rect& dirty_rc,
- const pp::Rect& gradient_rc,
- uint32_t start_color,
- uint32_t end_color,
- bool horizontal,
- uint8_t transparency);
-
-// Copy one image into another. If stretch is true, the result occupy the entire
-// dest_rc. If stretch is false, dest_rc.point will be used as an origin of the
-// result image. Copy will ignore all pixels with transparent alpha from the
-// source image.
-void CopyImage(const pp::ImageData& src, const pp::Rect& src_rc,
- pp::ImageData* dest, const pp::Rect& dest_rc,
- bool stretch);
-
-// Fill in rectangle with specified color.
-void FillRect(pp::ImageData* image, const pp::Rect& rc, uint32_t color);
-
// Shadow Matrix contains matrix for shadow rendering. To reduce amount of
// calculations user may choose to cache matrix and reuse it if nothing changed.
class ShadowMatrix {
« no previous file with comments | « no previous file | pdf/draw_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698