aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
...
* [PDF] Improve PDF support in gm.Gravatar vandebo@chromium.org2011-02-03
| | | | | | | | Currently gm ends up writing the same PDF four times. This fixes that problem, making PDF a first class citizen and providing a better framework for additional backends. Read support for PDF is still missing though. Review URL: http://codereview.appspot.com/4130045 git-svn-id: http://skia.googlecode.com/svn/trunk@759 2bbb7eff-a529-9590-31e7-b0007b416f81
* Improve usability of SkAdvancedTypefaceMetrics for non PDF cases.Gravatar vandebo@chromium.org2011-02-03
| | | | | | | | Change the code to fill out the metrics even if the font isn't embeddable. Previously, if the font wasn't embeddable, the code would set the type to not embeddable and return without filling out the rest of the metrics. Review URL: http://codereview.appspot.com/3973053 git-svn-id: http://skia.googlecode.com/svn/trunk@758 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Start from an identity transform for drawDevice.Gravatar vandebo@chromium.org2011-02-03
| | | | | | | | drawDevice, like drawSprite should start from the identity transform instead of applying the passed translation on top of the current transform. Review URL: http://codereview.appspot.com/4023066 git-svn-id: http://skia.googlecode.com/svn/trunk@757 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix warnings on linux build (strict aliasing, cons init order, vars used ↵Gravatar bsalomon@google.com2011-02-03
| | | | | | only in asserts) git-svn-id: http://skia.googlecode.com/svn/trunk@756 2bbb7eff-a529-9590-31e7-b0007b416f81
* change forward decl of SkMatrix from struct (wrong) to class (correct)Gravatar reed@android.com2011-02-03
| | | | | | | | fixes issue http://code.google.com/p/skia/issues/detail?id=139 git-svn-id: http://skia.googlecode.com/svn/trunk@755 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make aggressive shader opts an option in GrUserConfig.h. Currently just ↵Gravatar bsalomon@google.com2011-02-02
| | | | | | controls whether color=white optimization is applied (eliminates reading color varying and modulation by color). This was already a compile time option just not exposed through user config. git-svn-id: http://skia.googlecode.com/svn/trunk@754 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make enabling static rect VB configurable by user config file.Gravatar bsalomon@google.com2011-02-02
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@753 2bbb7eff-a529-9590-31e7-b0007b416f81
* Cleanup SkPDFTypfaceInfo and make it more generic.Gravatar vandebo@chromium.org2011-02-02
| | | | | | | | | | | | Renamed to SkAdvancedTypefaceMetrics. Include Em size and return all metrics in unscaled font units. Make retrieval of advances optional. Reorder SkAdvancedTypefaceMetrics to be somewhat logical. Change the types of fields in SkAdvancedTypefaceMetrics to their minimum required size. Review URL: http://codereview.appspot.com/4121049 git-svn-id: http://skia.googlecode.com/svn/trunk@752 2bbb7eff-a529-9590-31e7-b0007b416f81
* Attempt to simplify NPOT texture caps. Also fixes case where textures would ↵Gravatar bsalomon@google.com2011-02-01
| | | | | | unnecessarily be bloated to POT. Adds setting of sampler's filter setting in paint conversion. git-svn-id: http://skia.googlecode.com/svn/trunk@751 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Clean up ref counting.Gravatar vandebo@chromium.org2011-02-01
| | | | | | | | Return ref'd objs where possible enabling removal of many SkRefPtr<> variables. Review URL: http://codereview.appspot.com/4029051 git-svn-id: http://skia.googlecode.com/svn/trunk@750 2bbb7eff-a529-9590-31e7-b0007b416f81
* Adds ability to draw rects using a unit square vertex buffer. Useful when ↵Gravatar bsalomon@google.com2011-02-01
| | | | | | | | | | matrix/uniform changes are less expensive than sending new verts. Adds optional matrix parameters to GrContext drawRect and drawRectToRect so that non-axis-aligned matrices can be drawn using these functions. codereview Issue 4105049 git-svn-id: http://skia.googlecode.com/svn/trunk@749 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Fix bugs preventing gm from running with PDF support.Gravatar vandebo@chromium.org2011-02-01
| | | | | | | | | Fix copy-paste ref counting bug. Change NOT_IMPLEMENTED macro to only assert in debug mode. Review URL: http://codereview.appspot.com/4080048 git-svn-id: http://skia.googlecode.com/svn/trunk@748 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Support image alpha channel plus a couple small fixes.Gravatar vandebo@chromium.org2011-01-31
| | | | | | | | | Fix bug in rendering paths with cubic segments. Only compress data if the compressed size is smaller than the uncompressed size. Review URL: http://codereview.appspot.com/4079048 git-svn-id: http://skia.googlecode.com/svn/trunk@747 2bbb7eff-a529-9590-31e7-b0007b416f81
* initialize int var-args to placate chrome's runtime checkGravatar reed@google.com2011-01-31
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@746 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Honor srcRect in drawBitmap.Gravatar vandebo@chromium.org2011-01-29
| | | | | | Review URL: http://codereview.appspot.com/4083045 git-svn-id: http://skia.googlecode.com/svn/trunk@745 2bbb7eff-a529-9590-31e7-b0007b416f81
* update dox on bitmap configsGravatar reed@google.com2011-01-28
| | | | | | | | document testing build-flag for large bitmaps git-svn-id: http://skia.googlecode.com/svn/trunk@744 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Add replacement implementations for functions missing in older ↵Gravatar vandebo@chromium.org2011-01-28
| | | | | | | | freetype libs. Review URL: http://codereview.appspot.com/4043044 git-svn-id: http://skia.googlecode.com/svn/trunk@743 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix slow performance on desktops by uping our max-texture-dim from 512 toGravatar reed@google.com2011-01-28
| | | | | | | | whatever the gpu itself broadcasts. git-svn-id: http://skia.googlecode.com/svn/trunk@742 2bbb7eff-a529-9590-31e7-b0007b416f81
* replace UINT32_MAX with portable macroGravatar reed@google.com2011-01-28
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@741 2bbb7eff-a529-9590-31e7-b0007b416f81
* conditionalize impl on SK_SUPPORT_PDF, to help chrome buildGravatar reed@google.com2011-01-26
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@740 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix windows build.Gravatar vandebo@chromium.org2011-01-26
| | | | | | Review URL: http://codereview.appspot.com/3996048 git-svn-id: http://skia.googlecode.com/svn/trunk@739 2bbb7eff-a529-9590-31e7-b0007b416f81
* move into core for now, so we can build SkFontHost_FreeType.cppGravatar reed@google.com2011-01-26
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@738 2bbb7eff-a529-9590-31e7-b0007b416f81
* work around framebuffer_blit confusion on linux -- better fix on the wayGravatar reed@google.com2011-01-26
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@737 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix linux gpu build (don't need egl.h)Gravatar reed@google.com2011-01-26
| | | | | | | | | -This line, and those below, will be ignored-- M trunk/gpu/include/GrGLConfig.h git-svn-id: http://skia.googlecode.com/svn/trunk@736 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove debugging code around gUseExtGravatar reed@google.com2011-01-26
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@735 2bbb7eff-a529-9590-31e7-b0007b416f81
* close quotes on #errorGravatar reed@google.com2011-01-26
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@734 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix mac build (don't need typedef struct foo foo)Gravatar reed@google.com2011-01-26
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@733 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix warnings, including using GrTCast<> to go from &Obj -> uint32_t*Gravatar reed@google.com2011-01-26
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@732 2bbb7eff-a529-9590-31e7-b0007b416f81
* embed a refdict inside SkDeviceGravatar reed@google.com2011-01-25
| | | | | | | | udate unittests to test refdict's destructor git-svn-id: http://skia.googlecode.com/svn/trunk@731 2bbb7eff-a529-9590-31e7-b0007b416f81
* add refdict class, for holding a dictionary of reference-counted objectsGravatar reed@google.com2011-01-25
| | | | | | | | -- experimental git-svn-id: http://skia.googlecode.com/svn/trunk@730 2bbb7eff-a529-9590-31e7-b0007b416f81
* Update SkPDFDevice::drawPath signature to match SkDevice.Gravatar vandebo@chromium.org2011-01-25
| | | | | | Review URL: http://codereview.appspot.com/4068044 git-svn-id: http://skia.googlecode.com/svn/trunk@729 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add Truetype and Type 1 font embedding supportGravatar vandebo@chromium.org2011-01-25
| | | | | | | | | | | | | | | | | | | | | | | | | Sorry this is such a large CL. It was very exploratory for me to make this work. - Add an interface to SkFontHost to retrieve font information and provide NULL implementations on all platforms except Linux. - Segment large Type 1 fonts into fonts with shared resources with 255 glyphs each. - Convert the various Type 1 formats to the form PDF wants. - Update font as we draw text instead of as part of the graphical state. - Remove built-in font support, we can't really use it. Other changes I can pull out to a separate CL if you like. - Add SkTScopedPtr class. - Fix double free of resources. - Fix bug in resource unique-ifying code. - Don't print anything for any empty clip path. - Fix copy paste error - MiterLimit. - Fix sign extension bug in SkPDFString - Fix FlateTest rename that was missed on a previous commit. Review URL: http://codereview.appspot.com/4082042 git-svn-id: http://skia.googlecode.com/svn/trunk@728 2bbb7eff-a529-9590-31e7-b0007b416f81
* fixes for some warnings:Gravatar reed@google.com2011-01-25
| | | | | | | | | | | - #if of something that was not defined - explicit constructor call for baseclass in copy-constructor of subclass http://code.google.com/p/skia/issues/detail?id=112 git-svn-id: http://skia.googlecode.com/svn/trunk@727 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add SampleShaderText to vs project.Gravatar bsalomon@google.com2011-01-25
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@726 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add shaded text sample and gm test.Gravatar bsalomon@google.com2011-01-25
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@725 2bbb7eff-a529-9590-31e7-b0007b416f81
* chrome always assumes BGRA for its texturesGravatar reed@google.com2011-01-25
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@724 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix comments for U8CPU and S16CPUGravatar reed@google.com2011-01-25
| | | | | | | | http://code.google.com/p/skia/issues/detail?id=113 git-svn-id: http://skia.googlecode.com/svn/trunk@723 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add GrGpuGLShaders2 to gr_files.mkGravatar bsalomon@google.com2011-01-24
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@722 2bbb7eff-a529-9590-31e7-b0007b416f81
* Increase number of stages from 1 to 2Gravatar bsalomon@google.com2011-01-24
| | | | | | | | | Move GrTextContext from stage 0 to stage 1 so it doesn't conflict with GrPaint (allow textured text) Switch to dynamically generated shaders git-svn-id: http://skia.googlecode.com/svn/trunk@721 2bbb7eff-a529-9590-31e7-b0007b416f81
* make xfermode warning printf be debug-onlyGravatar reed@google.com2011-01-21
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@720 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix release buildGravatar reed@google.com2011-01-21
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@719 2bbb7eff-a529-9590-31e7-b0007b416f81
* Rev the GrContext interface. Context has draw* functions that take a new ↵Gravatar bsalomon@google.com2011-01-21
| | | | | | | | | | | GrPaint object. Removed many of the lower-level GrGpu function call-throughs on context. Remove unused/unsupported point size (we don't draw non-hairline points using GL points). Change current* getter functions to get* for consistency. Fix bounds when drawing inverse-filled paths. git-svn-id: http://skia.googlecode.com/svn/trunk@718 2bbb7eff-a529-9590-31e7-b0007b416f81
* In GrMatrix's setScale, setSkew, & setTranslate check whether the values ↵Gravatar bsalomon@google.com2011-01-20
| | | | | | passed in make the matrix identity before setting the typemask. git-svn-id: http://skia.googlecode.com/svn/trunk@717 2bbb7eff-a529-9590-31e7-b0007b416f81
* replace GR_GL(GetIntegerv with GR_GL_GetIntegerv to ensure that we zero-initGravatar reed@google.com2011-01-20
| | | | | | | | the var-arg (needed for chrome) git-svn-id: http://skia.googlecode.com/svn/trunk@716 2bbb7eff-a529-9590-31e7-b0007b416f81
* update chrome-specific glconfig (should make versions of this for mac/win/linux)Gravatar reed@google.com2011-01-19
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@715 2bbb7eff-a529-9590-31e7-b0007b416f81
* add experimental custom GL header for chromeGravatar reed@google.com2011-01-19
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@714 2bbb7eff-a529-9590-31e7-b0007b416f81
* Cleanup including of GL headers and provide way to include custom headers, ↵Gravatar bsalomon@google.com2011-01-19
| | | | | | extension getter. git-svn-id: http://skia.googlecode.com/svn/trunk@713 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix fEntryCount when we purge a cache entry (bug caught by our validate())Gravatar reed@google.com2011-01-19
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@712 2bbb7eff-a529-9590-31e7-b0007b416f81
* document new (temporary) build flagsGravatar reed@google.com2011-01-19
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@711 2bbb7eff-a529-9590-31e7-b0007b416f81
* add compile flag GR_SKIP_2POINTRADIAL_PROGRAMS to ignore the 2point-radialGravatar reed@google.com2011-01-19
| | | | | | | | shader programs (for now), which have problematic on some GPUs git-svn-id: http://skia.googlecode.com/svn/trunk@710 2bbb7eff-a529-9590-31e7-b0007b416f81