robertphillips@google.com
41d2532931
The rest of: Add purgeAsNeeded calls before addResource calls
...
https://codereview.chromium.org/19591003/
git-svn-id: http://skia.googlecode.com/svn/trunk@10146 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-18 17:12:57 +00:00
robertphillips@google.com
1622a6d950
Add purgeAsNeeded calls before addResource calls
...
https://codereview.chromium.org/19591003/
git-svn-id: http://skia.googlecode.com/svn/trunk@10145 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-18 17:11:45 +00:00
reed@google.com
c968315136
add FilterLevel API to SkPaint, replacing various Flag bits
...
BUG=
R=bsalomon@google.com
Review URL: https://codereview.chromium.org/19769005
git-svn-id: http://skia.googlecode.com/svn/trunk@10138 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-18 13:47:01 +00:00
skia.committer@gmail.com
f7d01ce184
Sanitizing source files in Housekeeper-Nightly
...
git-svn-id: http://skia.googlecode.com/svn/trunk@10134 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-18 07:00:56 +00:00
commit-bot@chromium.org
6a4ba5b205
[PDF] Use SkTypeface::countGlyphs instead of getAdvancedTypefaceMetrics
...
resubmit r10063
BUG=1088
R=bungeman@google.com
Author: vandebo@chromium.org
Review URL: https://chromiumcodereview.appspot.com/19668002
git-svn-id: http://skia.googlecode.com/svn/trunk@10133 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-17 21:55:08 +00:00
commit-bot@chromium.org
59e16e4e1d
Fix leak of GrGLTexID when its owning GrGLTexture has been abandoned.
...
BUG=260708
R=robertphillips@google.com
Author: bsalomon@google.com
Review URL: https://chromiumcodereview.appspot.com/19580003
git-svn-id: http://skia.googlecode.com/svn/trunk@10132 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-17 21:39:58 +00:00
commit-bot@chromium.org
a524d5ea22
Avoid lineTo() duplication in SkPath::dump().
...
Currently, SkPath.dump() produces duplicate entries for lineTo():
path.moveTo(0, 0);
path.lineTo(1.00000012f, 0);
path.lineTo(1.00000012f, 0);
path.lineTo(1.00000012f, 1.00000012f);
path.lineTo(1.00000012f, 1.00000012f);
path.lineTo(0, 1.00000012f);
path.lineTo(0, 1.00000012f);
path.lineTo(0, 0);
path.lineTo(0, 0);
path.close();
R=bungeman@google.com
Author: fmalita@chromium.org
Review URL: https://chromiumcodereview.appspot.com/19540004
git-svn-id: http://skia.googlecode.com/svn/trunk@10131 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-17 21:39:54 +00:00
commit-bot@chromium.org
fd03d4a829
Replace all instances of GrRect with SkRect.
...
And remove the typedef in GrRect.h. The same with GrIRect.
R=robertphillips@google.com
Author: tfarina@chromium.org
Review URL: https://chromiumcodereview.appspot.com/19449002
git-svn-id: http://skia.googlecode.com/svn/trunk@10130 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-17 21:39:42 +00:00
commit-bot@chromium.org
5dd567c2a5
Add getRectCount to SkRegtion
...
It is useful to know how many rects comprise a region,
since in some situations we can optimize code based on
the complexity of the region. For instance, if we use
SkRegion for tracking invalidation we might opt to use
the region bounds as invalidation instead of iterating
over each rect.
R=reed@google.com , tomhudson@chromium.org , caryclark@google.com , robertphillips@google.com
Author: vmpstr@chromium.org
Review URL: https://chromiumcodereview.appspot.com/19366008
git-svn-id: http://skia.googlecode.com/svn/trunk@10129 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-17 21:39:28 +00:00
commit-bot@chromium.org
1836d337a8
Missed this is r9949 (Allow the resource cache to (indirectly) flush the InOrderDrawBuffer - https://codereview.chromium.org/18466005/ )
...
R=bsalomon@google.com
Author: robertphillips@google.com
Review URL: https://chromiumcodereview.appspot.com/19401002
git-svn-id: http://skia.googlecode.com/svn/trunk@10118 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-16 22:55:03 +00:00
bungeman@google.com
f2e7dbb09f
Split TLS implementation into its own translation unit.
...
SkTLS has it's own header separate from SkThread, and having SkThread own
the platform implementation of SkTLS is problematic with Chromium. The
simplest way to clean this up is to put the implementation in its own set
of files, where it is also more easily found.
R=robertphillips@google.com
Review URL: https://codereview.chromium.org/19240007
git-svn-id: http://skia.googlecode.com/svn/trunk@10105 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-16 14:59:24 +00:00
tfarina@chromium.org
883fe7f8b1
Move implementation of SkFilterShader into its source file.
...
Since SkFilterShader has its own header file, makes more sense to have a
separate source file to implement it rather than placing it in a "random"
SkColorFilter.cpp file.
R=robertphillips@google.com
Review URL: https://codereview.chromium.org/19305004
git-svn-id: http://skia.googlecode.com/svn/trunk@10101 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-16 13:05:27 +00:00
skia.committer@gmail.com
977409aceb
Sanitizing source files in Housekeeper-Nightly
...
git-svn-id: http://skia.googlecode.com/svn/trunk@10096 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-16 07:00:56 +00:00
commit-bot@chromium.org
0d4fe14a41
Const-ify SkDebugCanvas::getSize().
...
This is an obviously const method, no reason not to mark it as such.
R=robertphillips@google.com , fmalita@google.com
Author: fmalita@chromium.org
Review URL: https://chromiumcodereview.appspot.com/19289003
git-svn-id: http://skia.googlecode.com/svn/trunk@10094 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-15 22:47:14 +00:00
bungeman@google.com
e05e75eda1
Update SkGScalerContext to properly forward onCountGlyphs.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@10090 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-15 19:52:13 +00:00
bungeman@google.com
7bdd614a19
Implement onCountGlyphs and onGetUPEM on Windows.
...
R=vandebo@chromium.org
Review URL: https://codereview.chromium.org/19231003
git-svn-id: http://skia.googlecode.com/svn/trunk@10089 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-15 19:42:57 +00:00
robertphillips@google.com
cce4102f31
Added newlines at the end of SkGpuBlurUtils.*
...
git-svn-id: http://skia.googlecode.com/svn/trunk@10082 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-15 15:47:10 +00:00
robertphillips@google.com
736dd031f1
Move gaussianBlur functionality to src\effects
...
https://codereview.chromium.org/18771004/
git-svn-id: http://skia.googlecode.com/svn/trunk@10080 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-15 15:06:54 +00:00
caryclark@google.com
791d0de747
fix linux point compare
...
fix linux pt compare
BUG=
Review URL: https://codereview.chromium.org/19203002
git-svn-id: http://skia.googlecode.com/svn/trunk@10076 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-15 14:21:17 +00:00
commit-bot@chromium.org
2d3b492013
Remove possiblity of NULL effect in GrEffectStage
...
R=jvanverth@google.com
Author: bsalomon@google.com
Review URL: https://chromiumcodereview.appspot.com/18295008
git-svn-id: http://skia.googlecode.com/svn/trunk@10075 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-15 13:54:06 +00:00
caryclark@google.com
fa2aeee27a
path ops near exact
...
Modify line intersections to first
- match exact ends
- compute intersections
- match near ends
where the exact ends are preferred, then near matches, then
computed matches. This pulls matches towards existing end points
when possible, and keeps intersection distances consistent with
different line/line line/quad and line/cubic computations.
BUG=
Review URL: https://codereview.chromium.org/19183003
git-svn-id: http://skia.googlecode.com/svn/trunk@10073 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-15 13:29:13 +00:00
commit-bot@chromium.org
c2050e3a3e
ARM Skia NEON patches - 01 - Simple fixes
...
This series contains a few fairly non-controversial fixes.
Misc: remove dead references to neon 4444 functions
Misc: avoid the double _neon_neon suffix in the clamp matrix functions.
MAKENAME already adds the _neon suffix
Misc: a few stupid / obvious fixes
BUG=
R=djsollen@google.com
Author: kevin.petit.arm@gmail.com
Review URL: https://chromiumcodereview.appspot.com/18666004
git-svn-id: http://skia.googlecode.com/svn/trunk@10072 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-15 13:10:31 +00:00
commit-bot@chromium.org
5dc14c171a
ARM Skia NEON patches - 08 - Cleaning / possible fix
...
Misc: use SK_PMCOLOR_BYTE_ORDER where appropriate
Before SK_PMCOLOR_BYTE_ORDER was introduced, I had written my own
macro for the same purpose. I had at the time spotted these two
places where it seemed to be useful.
The change in SkCreateCGImageRef.cpp may be a bugfix or a bug for the
second occurrence, I'm not sure...
BUG=
R=djsollen@google.com , caryclark@google.com , reed@google.com , tomhudson@google.com
Author: kevin.petit.arm@gmail.com
Review URL: https://chromiumcodereview.appspot.com/18024003
git-svn-id: http://skia.googlecode.com/svn/trunk@10071 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-15 13:00:45 +00:00
commit-bot@chromium.org
12e0cda1dd
ARM Skia NEON patches - 03 - Duplicate code removal
...
Misc: remove some duplicate code
SkAlphaMul does exactly the same thing as the mul function above,
so use it.
BUG=
R=djsollen@google.com
Author: kevin.petit.arm@gmail.com
Review URL: https://chromiumcodereview.appspot.com/18997003
git-svn-id: http://skia.googlecode.com/svn/trunk@10070 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-15 12:40:54 +00:00
commit-bot@chromium.org
e38e53b532
ARM Skia NEON patches - 07 - Equation simplification
...
Misc: simplify the equation of the exclusion Xfermode
The equation can be dramatically simplified. The results with gm are
the same except that the code is faster.
BUG=
R=djsollen@google.com , reed@google.com , bsalomon@google.com , cabanier@adobe.com
Author: kevin.petit.arm@gmail.com
Review URL: https://chromiumcodereview.appspot.com/18112016
git-svn-id: http://skia.googlecode.com/svn/trunk@10069 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-15 12:20:36 +00:00
skia.committer@gmail.com
b88ab93c37
Sanitizing source files in Housekeeper-Nightly
...
git-svn-id: http://skia.googlecode.com/svn/trunk@10067 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-14 07:01:15 +00:00
humper@google.com
9c96d4b5ff
fix trivial matrix computation
...
Revert "Reverted 10056-10059"
This reverts commit bab4ebcaa7270c3b866a8e10917c39b055ebd51a.
Fix broken GM test, reintroduce image scaling.
BUG=
Review URL: https://codereview.chromium.org/18721006
git-svn-id: http://skia.googlecode.com/svn/trunk@10066 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-14 01:44:59 +00:00
robertphillips@google.com
7893aaeaba
Reverting 10063 due to Win7 crashes in RenderPDFs step
...
git-svn-id: http://skia.googlecode.com/svn/trunk@10064 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-13 18:33:27 +00:00
commit-bot@chromium.org
000e13ef16
[PDF] Use SkTypeface::countGlyphs instead of getAdvancedTypefaceMetrics
...
BUG=1088
R=bungeman@google.com
Author: vandebo@chromium.org
Review URL: https://chromiumcodereview.appspot.com/18886005
git-svn-id: http://skia.googlecode.com/svn/trunk@10063 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-13 17:24:30 +00:00
commit-bot@chromium.org
42dacab4e7
Make GrPaint have a variable sized array of color and coverage stages rather than a fixed size.
...
R=robertphillips@google.com , jvanverth@google.com
Author: bsalomon@google.com
Review URL: https://chromiumcodereview.appspot.com/18686007
git-svn-id: http://skia.googlecode.com/svn/trunk@10062 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-13 17:24:24 +00:00
robertphillips@google.com
d647426714
Reverted 10056-10059
...
git-svn-id: http://skia.googlecode.com/svn/trunk@10060 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-13 15:37:25 +00:00
skia.committer@gmail.com
fa1bd5f86c
Sanitizing source files in Housekeeper-Nightly
...
git-svn-id: http://skia.googlecode.com/svn/trunk@10059 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-13 07:00:56 +00:00
humper@google.com
d64d8a905a
Working plumb of image scaling:
...
1) always generate mipmaps if we detect that we are downsampling.
2) pre-scale the image if we detect that we are upsampling
(currently valid for scale+translate only)
3) A few miscellaneous bug fixes related to image scaling.
Still need SSE/Neon versions of these image scalers.
BUG=
R=bsalomon@google.com , robertphillips@google.com
Review URL: https://codereview.chromium.org/18978014
git-svn-id: http://skia.googlecode.com/svn/trunk@10056 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-12 21:14:33 +00:00
egdaniel@google.com
5383a75253
Add implicit hairline conic rendering to GPU
...
R=bsalomon@google.com
Review URL: https://codereview.chromium.org/18258005
git-svn-id: http://skia.googlecode.com/svn/trunk@10055 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-12 20:15:34 +00:00
bungeman@google.com
4b3ef5ad33
Add newline for r10050.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@10051 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-12 18:31:59 +00:00
bungeman@google.com
f5cc5b140c
R=mtklein@google.com
...
Review URL: https://codereview.chromium.org/18503009
git-svn-id: http://skia.googlecode.com/svn/trunk@10050 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-12 18:22:49 +00:00
commit-bot@chromium.org
ef284a84f5
The two leaks are:
...
missing unrefs in megalooper GM
missing reset capability in oval renderer
This CL also expands the instance counting system to some recently adding classes (e.g., SkFontStyleSet)
R=bsalomon@google.com , jvanverth@google.com
Author: robertphillips@google.com
Review URL: https://chromiumcodereview.appspot.com/18461007
git-svn-id: http://skia.googlecode.com/svn/trunk@10030 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-11 22:29:29 +00:00
senorblanco@chromium.org
40ea172f1e
Initialize the matrix used when recursing from a GPU image filter -> raster image filter.
...
BUG=
R=bsalomon@google.com
Review URL: https://codereview.chromium.org/5636027884503040
git-svn-id: http://skia.googlecode.com/svn/trunk@10029 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-11 20:50:10 +00:00
commit-bot@chromium.org
0a5699ee48
ARM Skia NEON patches - 13 - S32A_Opaque
...
Blitrow32: S32A_Opaque code cleaning and speed improvement
- the old way of calculating alpha doesn't seem to be used anymore,
so remove the remaining code
- adding prefetching allows to improve performance greatly in some
cases at the expense of a little trade-off:
+-------+-----------+------------+
| count | Cortex-A9 | Cortex-A15 |
+-------+-----------+------------+
| 1,2 | 0 | 0 |
+-------+-----------+------------+
| 4 | 0 | -3% |
+-------+-----------+------------+
| 8 | 0 | -4% |
+-------+-----------+------------+
| 16 | 0 | -5% |
+-------+-----------+------------+
| 64 | +14% | 0 |
+-------+-----------+------------+
| 256 | +14% | +12% |
+-------+-----------+------------+
| 1024 | +115% | +15% |
+-------+-----------+------------+
BUG=
R=djsollen@google.com
Author: kevin.petit.arm@gmail.com
Review URL: https://chromiumcodereview.appspot.com/18459008
git-svn-id: http://skia.googlecode.com/svn/trunk@10026 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-11 20:28:24 +00:00
fmalita@google.com
d3ae1d6231
SkObjectParser::SaveFlagsToString() should handle SaveFlags as a bitmask.
...
Test one SaveFlags bit at a time instead of exploring the whole value space.
R=robertphillips@google.com
Review URL: https://codereview.chromium.org/18034028
git-svn-id: http://skia.googlecode.com/svn/trunk@10014 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-11 16:25:55 +00:00
skia.committer@gmail.com
de2e4e8a64
Sanitizing source files in Housekeeper-Nightly
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9992 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-11 07:01:01 +00:00
robertphillips@google.com
31a40ef58b
Win7/8 compiler warnings/errors fix for r9980
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9991 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-11 00:01:39 +00:00
humper@google.com
2815c19c4d
add matrix objects to the lua bindings, as well as a lua script to find the proportion of image draw commands with different kinds of matrices
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9986 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-10 22:42:30 +00:00
humper@google.com
a8fc2680bb
fix 64 bit warnings
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9984 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-10 22:34:05 +00:00
humper@google.com
5857e0350d
remove unused variables
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9982 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-10 22:21:03 +00:00
reed@google.com
c1a8684a47
use SkIntToScalar
...
BUG=
R=senorblanco@chromium.org
Review URL: https://codereview.chromium.org/18622004
git-svn-id: http://skia.googlecode.com/svn/trunk@9981 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-10 21:51:47 +00:00
humper@google.com
87fbf4fc73
fix bug with awesome filtered images sometimes being slightly offset.
...
BUG=
Review URL: https://codereview.chromium.org/19013004
git-svn-id: http://skia.googlecode.com/svn/trunk@9980 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-10 21:49:29 +00:00
reed@google.com
2956387916
add paint:getEffects to return table of bools of a given effect is present on the paint
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9978 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-10 21:23:49 +00:00
commit-bot@chromium.org
7b320703d4
Implement offset for GPU filter path. Although we can't yet use this in Blink for FEOffset, due to SVG semantics, we can use it to support crop rect (upcoming patch).
...
This patch adds the parameter to the filterImageGPU() signature, plumbs through the code on the GPU side, and implements support for it in SkXfermodeImageFilter for both raster and GPU.
Of the remaining filters with GPU implementations, Blur, Morphology, Bicubic and Displacement work fine; they're commutative wrt offset and can simply pass it up the chain. Blend is not, but will be removed shortly anyway (has been replaced with SkXfermodeImageFilter in Blink).
R=reed@google.com , bsalomon@google.com
Author: senorblanco@chromium.org
Review URL: https://chromiumcodereview.appspot.com/15995026
git-svn-id: http://skia.googlecode.com/svn/trunk@9977 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-10 21:22:18 +00:00
commit-bot@chromium.org
b446fc7f05
Remove SkRasterClip::setPath(const SkPath&, const SkRasterClip&, bool).
...
The method is only used in SkCanvas::clipPathHelper() and only called when isRect() is true (which effectively disables the !isBW branch).
Thus, we can promote the isBW branch to the caller and drop the rest of the method.
R=reed@google.com
Author: fmalita@chromium.org
Review URL: https://chromiumcodereview.appspot.com/18552004
git-svn-id: http://skia.googlecode.com/svn/trunk@9974 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-10 20:55:39 +00:00
commit-bot@chromium.org
e81d1bce7e
don't leak the bitmap filter
...
BUG=
R=reed@google.com
Author: humper@google.com
Review URL: https://chromiumcodereview.appspot.com/18999005
git-svn-id: http://skia.googlecode.com/svn/trunk@9973 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-10 20:42:12 +00:00
reed@google.com
262ff953a7
restore hash size to 8 bits, following windows fix in 3591f7a4a56153349240dfc542cc61a11fab2487
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9959 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-10 15:55:04 +00:00
reed@google.com
84e22d847f
allow createScalerContext to return null, and then have the GDI backend trigger that if we fail to create the necessary GDI resources
...
BUG=
R=bungeman@google.com
Review URL: https://codereview.chromium.org/18484005
git-svn-id: http://skia.googlecode.com/svn/trunk@9957 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-10 15:38:20 +00:00
commit-bot@chromium.org
3720fda4eb
ARM Skia NEON patches - 09 - Bugfix
...
Misc: fix a PDF warning/bug on ARM
char is unsigned by default on ARM, so the (curNibble < 0) test is
always false, probably leading to a bug.
BUG=
R=djsollen@google.com , edisonn@google.com
Author: kevin.petit.arm@gmail.com
Review URL: https://chromiumcodereview.appspot.com/18365005
git-svn-id: http://skia.googlecode.com/svn/trunk@9954 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-10 15:03:52 +00:00
commit-bot@chromium.org
89c43e84c4
ARM Skia NEON patches - 05 - Cleaning
...
Misc: move definition of empty SkBlitRow::ColorRectProc
For the sake of consistency, the empty SkBlitRow::ColorRectProc
should be defined in SkBlitRow_opts_none.cpp rather than
SkUtils_opts_none.cpp
BUG=
R=djsollen@google.com , reed@google.com , tomhudson@google.com
Author: kevin.petit.arm@gmail.com
Review URL: https://chromiumcodereview.appspot.com/18314005
git-svn-id: http://skia.googlecode.com/svn/trunk@9953 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-10 13:55:46 +00:00
commit-bot@chromium.org
939fffed12
ARM Skia NEON patches - 02 - Tune filter clobber list
...
Misc: reduce clobber list in SkBitmapProcState_filter_neon.h
This may allow the compiler to do a better job
BUG=
R=djsollen@google.com , tomhudson@google.com
Author: kevin.petit.arm@gmail.com
Review URL: https://chromiumcodereview.appspot.com/18996003
git-svn-id: http://skia.googlecode.com/svn/trunk@9952 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-10 13:53:19 +00:00
commit-bot@chromium.org
cae27fed5e
Allow the resource cache to (indirectly) flush the InOrderDrawBuffer
...
R=bsalomon@google.com
Author: robertphillips@google.com
Review URL: https://chromiumcodereview.appspot.com/18466005
git-svn-id: http://skia.googlecode.com/svn/trunk@9949 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-10 10:14:35 +00:00
skia.committer@gmail.com
9e1ec1a529
Sanitizing source files in Housekeeper-Nightly
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9948 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-10 07:00:58 +00:00
robertphillips@google.com
ead3b83645
Fix Win7 compiler errors/warnings for r9945
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9947 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-09 23:19:53 +00:00
humper@google.com
b088947f27
New bitmap filter checkin; this time with less build breakage
...
BUG=
Review URL: https://codereview.chromium.org/18942002
git-svn-id: http://skia.googlecode.com/svn/trunk@9944 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-09 21:37:14 +00:00
djsollen@google.com
dc7919f228
Remove old and unused Android font host code
...
R=bungeman@google.com , scroggo@google.com
Review URL: https://codereview.chromium.org/18666003
git-svn-id: http://skia.googlecode.com/svn/trunk@9940 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-09 20:35:03 +00:00
humper@google.com
1a8940e558
Revert "More general image filter interface; tested implementation of standalone"
...
This reverts commit 4df3e8b079e019af5f60c13e7e6ec6589663962a.
git-svn-id: http://skia.googlecode.com/svn/trunk@9937 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-09 18:02:06 +00:00
humper@google.com
25fc6b9bfb
More general image filter interface; tested implementation of standalone
...
image scaler (not yet plumbed). High quality downsampler. Fast SSE
resampler.
BUG=
R=reed@google.com
Review URL: https://codereview.chromium.org/17381008
git-svn-id: http://skia.googlecode.com/svn/trunk@9936 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-09 17:48:15 +00:00
commit-bot@chromium.org
d43f644912
Animated the PathUtils Sample to show path contours# Enter a description of the change.
...
Animated the PathUtils Sample to path contours
BUG=
R=reed@google.com , scroggo@google.com , djsollen@google.com
Author: dierk@google.com
Review URL: https://chromiumcodereview.appspot.com/18552005
git-svn-id: http://skia.googlecode.com/svn/trunk@9934 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-09 16:30:38 +00:00
scroggo@google.com
468142b2f5
Allow ico decoder to decode PNG sub-images.
...
Since Windows Vista, PNG can be embedded in an ICO file. Update
our decoder to support this.
BUG=https://code.google.com/p/skia/issues/detail?id=1398
R=djsollen@google.com
Review URL: https://codereview.chromium.org/18655007
git-svn-id: http://skia.googlecode.com/svn/trunk@9932 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-09 15:48:24 +00:00
scroggo@google.com
bc69ce982f
Remove bitmap reuse from SkImageDecoder.
...
Now that Android is using an SkBitmap::Allocator to reuse bitmap
memory, remove the unnecessary code to handle bitmap reuse inside
the decoders themselves.
Leaves in the code for bitmap reuse in decodeSubset, which still
may reuse bitmaps, and cropBitmap, which is called by decodeSubset.
R=djsollen@google.com
Review URL: https://codereview.chromium.org/17620004
git-svn-id: http://skia.googlecode.com/svn/trunk@9931 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-09 15:45:14 +00:00
reed@google.com
4b60dbe661
move failable work outside of constructors for SkGlyphCache and SkScalerContextGDI. If we fail, try to purge everything and try again, in case the failure was from memory/os-resource exhaustion (e.g. out of HDC handles in windows)
...
BUG=
Review URL: https://codereview.chromium.org/18132009
git-svn-id: http://skia.googlecode.com/svn/trunk@9930 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-09 15:29:32 +00:00
robertphillips@google.com
e1b75b4096
GM (and fix) for drawArc capping issue
...
https://codereview.chromium.org/18271003/
git-svn-id: http://skia.googlecode.com/svn/trunk@9928 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-09 15:03:59 +00:00
robertphillips@google.com
cb6d97ca71
Revert of r9902 (Consider conical shader opaque if it covers
...
entire plane - https://chromiumcodereview.appspot.com/18533006 ) due to roll issues (https://codereview.chromium.org/18859007/ )
git-svn-id: http://skia.googlecode.com/svn/trunk@9926 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-09 13:50:09 +00:00
skia.committer@gmail.com
a4aced4728
Sanitizing source files in Housekeeper-Nightly
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9919 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-09 07:00:56 +00:00
commit-bot@chromium.org
d8d976e7d2
Added SkPDFStream::setData(SkData*) in preparation for move from SkStream to SkData
...
R=vandebo@chromium.org , edisonn@google.com
Author: richardlin@chromium.org
Review URL: https://chromiumcodereview.appspot.com/18328026
git-svn-id: http://skia.googlecode.com/svn/trunk@9916 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-08 23:17:57 +00:00
scroggo@google.com
c6e5fcb4c4
Debugging statements to investigate a bug.
...
https://code.google.com/p/skia/issues/detail?id=1395 is a non-
deterministic bug that I have been unable to reproduce. Add
some debugging information to try to help diagnose.
BUG=https://code.google.com/p/skia/issues/detail?id=1395
R=edisonn@google.com
Review URL: https://codereview.chromium.org/18523008
git-svn-id: http://skia.googlecode.com/svn/trunk@9914 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-08 22:00:17 +00:00
scroggo@google.com
056dab300d
Revert "Temporary change to keep chrome happy."
...
Now that chrome has https://chromiumcodereview.appspot.com/18078003/ ,
this is no longer needed.
Fully switched over to using CreateFromStream!
Review URL: https://codereview.chromium.org/18655008
git-svn-id: http://skia.googlecode.com/svn/trunk@9911 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-08 18:40:42 +00:00
caryclark@google.com
07e97fccd2
path ops work in progress
...
BUG=
Review URL: https://codereview.chromium.org/18058007
git-svn-id: http://skia.googlecode.com/svn/trunk@9908 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-08 17:17:02 +00:00
tfarina@chromium.org
293f01939c
Fix header guard typos.
...
This is preventing compilation on Linux with clang.
R=robertphillips@google.com
Review URL: https://codereview.chromium.org/18131007
git-svn-id: http://skia.googlecode.com/svn/trunk@9905 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-08 13:00:42 +00:00
commit-bot@chromium.org
9839320ae1
Removing highp variables from perlin noise shader
...
Variables using highp on the Adreno320 (A.K.A. Nexus 4) seem to be causing issues. I modified the shader so that all variables stay in a lower range, no longer requiring the "highp" qualifier.
This may improve performance on other devices, like the xoom, where the "highp" qualifier was required.
In Blink, these layout tests may require rebaselining :
./css3/filters/effect-reference-hw.html
./css3/filters/effect-reference-zoom-hw.html
BUG=https://code.google.com/p/skia/issues/detail?id=1376
R=senorblanco@google.com , sugoi@google.com
Author: sugoi@chromium.org
Review URL: https://chromiumcodereview.appspot.com/18454004
git-svn-id: http://skia.googlecode.com/svn/trunk@9903 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-04 18:13:05 +00:00
commit-bot@chromium.org
5e6c3557f8
Consider conical shader opaque if it covers entire plane.
...
BUG=222380
R=junov@chromium.org , senorblanco@chromium.org , reed@google.com
Author: arbesfeld@chromium.org
Review URL: https://chromiumcodereview.appspot.com/18533006
git-svn-id: http://skia.googlecode.com/svn/trunk@9902 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-04 14:42:26 +00:00
robertphillips@google.com
e7db8d6c02
Fix for DEPS roll failure (a patch to r9898)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9901 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-04 11:48:52 +00:00
skia.committer@gmail.com
1842adf013
Sanitizing source files in Housekeeper-Nightly
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9900 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-04 07:01:07 +00:00
robertphillips@google.com
3cc820c050
Fix for r9888 bug
...
https://codereview.chromium.org/18656002/
git-svn-id: http://skia.googlecode.com/svn/trunk@9899 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-03 19:36:55 +00:00
robertphillips@google.com
1267fbd952
Minor GrContext/GrInOrderDrawBuffer cleanup
...
https://codereview.chromium.org/18341007/
git-svn-id: http://skia.googlecode.com/svn/trunk@9898 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-03 18:37:27 +00:00
robertphillips@google.com
0b82852b23
GPU-less build fix for r9888
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9890 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-03 15:49:05 +00:00
robertphillips@google.com
491493119c
Add canFilterMaskGPU & filterMaskGPU to SkMaskFilter
...
https://codereview.chromium.org/18110012/
git-svn-id: http://skia.googlecode.com/svn/trunk@9888 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-03 15:34:35 +00:00
commit-bot@chromium.org
6c035f6c87
Build fix for [-Werror=maybe-uninitialized].
...
gcc v4.7.3 failed to build due to uninitialized variables.
BUG=http://code.google.com/p/skia/issues/detail?id=1381
R=bungeman@google.com , reed@google.com
Author: dongseong.hwang@intel.com
Review URL: https://chromiumcodereview.appspot.com/17572010
git-svn-id: http://skia.googlecode.com/svn/trunk@9887 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-03 15:09:30 +00:00
robertphillips@google.com
2c82ed37bc
Revert of r9581 (oops, fix missing change in 9532, setting hashbits to 8) due to Chromium assert failure ( https://code.google.com/p/chromium/issues/detail?id=256476 )
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9886 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-03 15:06:38 +00:00
commit-bot@chromium.org
76e0d13789
Commented SSE blend functions and cleaned-up variable naming.
...
R=senorblanco@chromium.org , alokp@chromium.org , reed@google.com , bungeman@google.com
Author: ernstm@chromium.org
Review URL: https://chromiumcodereview.appspot.com/17847010
git-svn-id: http://skia.googlecode.com/svn/trunk@9870 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-02 17:40:19 +00:00
reed@google.com
b4162b12b1
impl charsToGlyphs for freetype
...
BUG=
R=bungeman@google.com
Review URL: https://codereview.chromium.org/18040004
git-svn-id: http://skia.googlecode.com/svn/trunk@9866 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-02 16:32:29 +00:00
jvanverth@google.com
d1b5b14747
Fix for Ovals/RRects on N4 missing interior rectangles.
...
Clamp square of gradiant length to non-zero value so it can be passed to
inversesqrt().
Also adds some fixes to rrect setup to avoid crossing zero.
Skia issue #1372
R=bsalomon@google.com , robertphillips@google.com
Review URL: https://codereview.chromium.org/18375003
git-svn-id: http://skia.googlecode.com/svn/trunk@9864 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-02 14:46:03 +00:00
reed@google.com
a3e500cee9
use else instead of else-if -- fixes 'possibly unused' warning
...
BUG=
R=bsalomon@google.com
Review URL: https://codereview.chromium.org/18527003
git-svn-id: http://skia.googlecode.com/svn/trunk@9863 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-02 14:44:27 +00:00
reed@google.com
bcb42aecf1
add charsToGlyphs to SkTypeface
...
Will disable new unittest until all backends are implemented.
On Mac, new API is 4x faster than old paint one, so next CL I will reimplement the paint calls in terms of the new typeface call.
R=eae@chromium.org
Review URL: https://codereview.chromium.org/18083023
git-svn-id: http://skia.googlecode.com/svn/trunk@9860 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-02 13:56:39 +00:00
skia.committer@gmail.com
0d55dd7d2c
Sanitizing source files in Housekeeper-Nightly
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9856 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-02 07:00:59 +00:00
dierk@google.com
6b4231225f
Merge remote-tracking branch 'refs/remotes/git-svn'
...
changed all makeXYWH args to SkScalar
Fixed non-constant array size in test.
Merge remote-tracking branch 'refs/remotes/git-svn'
Fixed non-constant array size in test.
Merge remote-tracking branch 'refs/remotes/git-svn'
fixed SkPathUtils.cpp:78
Fixed PathUtils.cpp:90
Fixed the float being passed to an int method
Fixed the bugs that crashed the build bots
git-svn-id: http://skia.googlecode.com/svn/trunk@9849 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-01 20:50:41 +00:00
dierk@google.com
19b8438ffb
Merge remote-tracking branch 'refs/remotes/git-svn'
...
fixed SkPathUtils.cpp:78
Fixed PathUtils.cpp:90
Fixed the float being passed to an int method
Fixed the bugs that crashed the build bots
git-svn-id: http://skia.googlecode.com/svn/trunk@9847 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-01 20:10:56 +00:00
dierk@google.com
6bee4ec36a
Fixed PathUtils.cpp:90
...
Fixed the float being passed to an int method
Fixed the bugs that crashed the build bots
git-svn-id: http://skia.googlecode.com/svn/trunk@9846 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-01 19:52:36 +00:00
dierk@google.com
74887b6edd
Fixed the bugs that crashed the build bots
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9845 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-01 19:30:14 +00:00
commit-bot@chromium.org
064779aa18
Adding my Bitmap2Path sample for 1on1 meeting.
...
BUG=
R=reed@google.com , borenet@google.com
Author: dierk@google.com
Review URL: https://chromiumcodereview.appspot.com/16829003
git-svn-id: http://skia.googlecode.com/svn/trunk@9843 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-01 17:50:29 +00:00
scroggo@google.com
e8f3471f94
Add a newline to the error message from JPEG.
...
Review URL: https://codereview.chromium.org/18344006
git-svn-id: http://skia.googlecode.com/svn/trunk@9836 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-01 14:44:54 +00:00
robertphillips@google.com
c111ce22e7
Partial revert of r9812 & put rest of r9812 behind a compile flag
...
https://codereview.chromium.org/18317003/
git-svn-id: http://skia.googlecode.com/svn/trunk@9832 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-01 13:10:10 +00:00
skia.committer@gmail.com
a6ff36bd61
Sanitizing source files in Housekeeper-Nightly
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9826 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-29 07:03:21 +00:00
scroggo@google.com
0e0180a176
Temporary change to keep chrome happy.
...
Add back in a version of the constructor taking a stream so that
chrome can build until we switch chrome to using the factory.
Will be reverted once chrome switches to using the factory.
R=robertphillips@google.com
Review URL: https://codereview.chromium.org/17916003
git-svn-id: http://skia.googlecode.com/svn/trunk@9823 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-28 21:35:29 +00:00
scroggo@google.com
f1754ec691
Replace SkPicture(SkStream) constructors with a factory.
...
SkPicture:
Remove the constructors which take an SkStream as an argument. Rather
than having to check a variable for success, the factory will return
NULL on failure.
Add a protected function for determining if an SkStream is an SKP
to share code with SkTimedPicture.
In the factory, check for a NULL SkStream.
Use a default decoder (from BUG:
https://code.google.com/p/skia/issues/detail?id=1325 )
SkDebuggerGUI:
Call SkPicture::CreateFromStream when necessary.
Write a factory for creating SkTimedPictures and use it.
Use the factory throughout tools.
Add include/lazy to utils and effects gyp include_dirs so SkPicture.h
can reference SkImageDecoder.h which references SkBitmapFactory.h (in
include/lazy).
Changes code Chromium uses, so this will require a temporary Skia
and then a change to Chromium to use the new Skia code.
TODO: Create a decoder that does nothing to be used by pinspect,
lua pictures, etc, and allow it to not assert in SkOrderedReadBuffer.
R=reed@google.com
Review URL: https://codereview.chromium.org/17113004
git-svn-id: http://skia.googlecode.com/svn/trunk@9822 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-28 21:32:00 +00:00
reed@google.com
92833f99b9
use width() instead of fWidth to get int value
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9816 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-28 19:47:43 +00:00
reed@google.com
60d3235ab4
add bitmap::eraseArea
...
BUG=
R=scroggo@google.com
Review URL: https://codereview.chromium.org/18029021
git-svn-id: http://skia.googlecode.com/svn/trunk@9815 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-28 19:40:50 +00:00
bsalomon@google.com
0a208a117b
Add flag bits for partial GrContext reset
...
BUG=248728
R=bsalomon@google.com
Committed: https://code.google.com/p/skia/source/detail?r=9802
Review URL: https://codereview.chromium.org/17027003
git-svn-id: http://skia.googlecode.com/svn/trunk@9814 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-28 18:57:35 +00:00
robertphillips@google.com
353f0971d8
GPU "fix" for thin stroked rects
...
https://codereview.chromium.org/17845003/
git-svn-id: http://skia.googlecode.com/svn/trunk@9812 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-28 17:57:06 +00:00
bungeman@google.com
44fb1faefe
Make implicit cast explicit to fix r9807 on gcc.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9809 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-28 17:21:35 +00:00
bungeman@google.com
b20a1b56a0
Minimal changes for SampleApp to eb HiDPI aware on Mac.
...
R=caryclark@google.com
Review URL: https://codereview.chromium.org/18055009
git-svn-id: http://skia.googlecode.com/svn/trunk@9807 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-28 16:44:55 +00:00
edisonn@google.com
ba669991e5
revert 9802 breacking tests on some configs
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9805 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-28 16:03:21 +00:00
bsalomon@google.com
cad107bbe7
Add flag bits for partial GrContext reset
...
BUG=248728
R=bsalomon@google.com
Review URL: https://codereview.chromium.org/17027003
git-svn-id: http://skia.googlecode.com/svn/trunk@9802 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-28 14:32:08 +00:00
commit-bot@chromium.org
6bf19415c3
Clang has stricter checking for conversion to a null pointer. In C++11 mode, false will produce an error if it is used in a place that expects a pointer. Change these cases to NULL.
...
R=reed@google.com , robertphillips@google.com
Author: rtrieu@google.com
Review URL: https://chromiumcodereview.appspot.com/18118004
git-svn-id: http://skia.googlecode.com/svn/trunk@9800 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-28 11:47:01 +00:00
commit-bot@chromium.org
f48e475528
Remove SK_DEBUG_PATH_REF
...
R=bungeman@google.com
Author: bsalomon@google.com
Review URL: https://chromiumcodereview.appspot.com/18029006
git-svn-id: http://skia.googlecode.com/svn/trunk@9795 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-27 18:39:39 +00:00
bungeman@google.com
4fe06995fc
Fix for crbug/253460 (generatePath crashing on Windows).
...
Sometimes GetGlyphOutlineW returns a number larger than BUFFERSIZE
even if BUFFERSIZE > 0. It was previously expected that GetGlyphOutlineW
would always return GDI_ERROR in this case.
git-svn-id: http://skia.googlecode.com/svn/trunk@9785 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-26 22:57:29 +00:00
commit-bot@chromium.org
371add80f5
Remove SK_IGNORE_MAC_TEXT_BOUNDS_FIX workaround.
...
Now that SK_IGNORE_MAC_TEXT_BOUNDS_FIX is no longer used in Chromium, we can remove the code.
R=bungeman@gmail.com
Author: fmalita@chromium.org
Review URL: https://chromiumcodereview.appspot.com/17886002
git-svn-id: http://skia.googlecode.com/svn/trunk@9781 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-26 21:08:11 +00:00
commit-bot@chromium.org
b8d00db075
Change undefined SkGpuRenderTarget and SkGpuTexture forward declares to GrRenderTarget and GrTexture.
...
R=robertphillips@google.com , reed@google.com
Author: bsalomon@google.com
Review URL: https://chromiumcodereview.appspot.com/17269003
git-svn-id: http://skia.googlecode.com/svn/trunk@9775 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-26 19:18:23 +00:00
bungeman@google.com
dd68f4533b
Fix PathRefDebugRef (SK_DEBUG_PATH_REF) case for SkPath copy constructor.
...
Review URL: https://codereview.chromium.org/17902003
git-svn-id: http://skia.googlecode.com/svn/trunk@9768 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-26 15:53:29 +00:00
edisonn@google.com
172339dd18
remove RLE config from debugger too
...
Review URL: https://codereview.chromium.org/17857003
git-svn-id: http://skia.googlecode.com/svn/trunk@9766 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-26 15:28:42 +00:00
edisonn@google.com
afe397b079
fix build break, remove "RLE" from gConfigNames too
...
Review URL: https://codereview.chromium.org/17893004
git-svn-id: http://skia.googlecode.com/svn/trunk@9765 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-26 14:52:34 +00:00
reed@google.com
2cb1480ff8
remove kRLE_Index8_Config from SkBitmap
...
BUG=
R=djsollen@google.com
Review URL: https://codereview.chromium.org/17740003
git-svn-id: http://skia.googlecode.com/svn/trunk@9764 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-26 14:35:02 +00:00
skia.committer@gmail.com
73a4b4f91f
Sanitizing source files in Housekeeper-Nightly
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9763 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-26 07:00:59 +00:00
reed@google.com
81e3412ebf
Revert "avoid AntiFrameRect when strokeSize is too small. Workaround for skbug/1368"
...
This reverts commit b70c77bb33495b5956550b39d479cf9b911d6114.
git-svn-id: http://skia.googlecode.com/svn/trunk@9762 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-26 00:17:41 +00:00
reed@google.com
056ae7cec3
avoid AntiFrameRect when strokeSize is too small. Workaround for skbug/1368
...
BUG=
R=robertphillips@google.com
Review URL: https://codereview.chromium.org/17739003
git-svn-id: http://skia.googlecode.com/svn/trunk@9761 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-25 23:55:23 +00:00
reed@google.com
62b260557d
move kConfigCount out of Config enum, so we don't pullute type-checking
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9759 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-25 21:23:54 +00:00
reed@google.com
b8b830e012
dump strokeWidth in SkDumpCanvas
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9756 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-25 20:42:37 +00:00
djsollen@google.com
9a70f347c9
Ensure we use the current locale when looking up fallback fonts per character
...
http://crbug.com/183830
R=scroggo@google.com
Review URL: https://codereview.chromium.org/17691002
git-svn-id: http://skia.googlecode.com/svn/trunk@9751 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-25 18:07:45 +00:00
robertphillips@google.com
8fd160350c
Revert r9724 (add rect-output parameter to isRect) to allow the DEPS roll
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9750 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-25 15:39:58 +00:00
skia.committer@gmail.com
020b25becb
Sanitizing source files in Housekeeper-Nightly
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9738 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-22 07:00:58 +00:00
reed@google.com
45f746f521
restore bitmap.erase() support for 4444 : trivial, and BitmapCopyTest relied on it
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9731 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-21 19:51:31 +00:00
reed@google.com
ea33808d32
remove dead AutoValidator
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9729 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-21 19:05:57 +00:00
reed@google.com
caf20254f0
remove dead references to PlatformProcs4444
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9728 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-21 18:40:09 +00:00
reed@google.com
6ba4572eed
remove dst/rendertarget support for kARGB_4444_Config
...
BUG=
Review URL: https://codereview.chromium.org/17335008
git-svn-id: http://skia.googlecode.com/svn/trunk@9727 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-21 18:30:53 +00:00
reed@google.com
da2b21fa9b
add rect-output parameter to isRect, allowing us to return the correct bounds even if a rectagular path has a trailing moveTo
...
https://code.google.com/p/chromium/issues/detail?id=247770
R=caryclark@google.com
Review URL: https://codereview.chromium.org/16950021
git-svn-id: http://skia.googlecode.com/svn/trunk@9724 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-21 17:32:32 +00:00
commit-bot@chromium.org
56a57aeb3c
SkDebugCanvas: remove unused <iostream> include.
...
No only this is unused, but it's pulling in a static initializer (which makes SkDebugCanvas unusable in Chromium).
BUG=
R=robertphillips@google.com , bungeman@google.com
Author: fmalita@chromium.org
Review URL: https://chromiumcodereview.appspot.com/17553006
git-svn-id: http://skia.googlecode.com/svn/trunk@9723 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-21 17:14:48 +00:00
bungeman@google.com
a5809a3e4c
SkPath::rewind needs to have same reset as SkPath::reset.
...
R=caryclark@google.com , reed@google.com
Review URL: https://codereview.chromium.org/17432003
git-svn-id: http://skia.googlecode.com/svn/trunk@9718 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-21 15:13:34 +00:00
bungeman@google.com
e9d8319576
Add maxCharWidth and a compile flag to use old metrics (needed by Blink).
...
Review URL: https://codereview.chromium.org/17502006
git-svn-id: http://skia.googlecode.com/svn/trunk@9712 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-21 05:31:38 +00:00
bungeman@google.com
0afc6bb1b4
Fixed invalid cast on mingw.
...
Fixes GCC error:
SkThread_win.cpp:39:61: error: invalid static_cast from type ‘int32_t {aka int}’ to type ‘const volatile LONG& {aka const volatile long int&}’
Review URL: https://codereview.chromium.org/17047004
git-svn-id: http://skia.googlecode.com/svn/trunk@9706 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-20 17:54:26 +00:00
reed@google.com
7bce9988af
formally declare luaskia extern guy, and then define it
...
BUG=
Review URL: https://codereview.chromium.org/17503003
git-svn-id: http://skia.googlecode.com/svn/trunk@9705 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-20 17:40:21 +00:00
zachr@google.com
28c27c8b79
enable shared lib support in linux for lua
...
R=bungeman@google.com , reed@google.com
Review URL: https://codereview.chromium.org/16099014
git-svn-id: http://skia.googlecode.com/svn/trunk@9703 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-20 17:15:05 +00:00
bungeman@google.com
05a729ff90
Fix limit on size of glyph paths.
...
Some web fonts have been observed to contain glyphs which require a buffer
greater than 20KB. In these rare cases we should allocate space on the heap.
Most glyphs require less than 8KB, and Windows has a 1MB stack, so in the
common case just use the stack.
This change also removes the gFTMutex which was both poorly named and used.
The constructor does not appear to have any need for it, and with this change
the path generation code does not need it. The mask generating code does need
memory barriers for correctness, but these bariers are no-ops on x86. We will
need another change to clean up this sort of static initialization code.
R=caryclark@google.com
Review URL: https://codereview.chromium.org/17435003
git-svn-id: http://skia.googlecode.com/svn/trunk@9700 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-20 15:29:16 +00:00
skia.committer@gmail.com
4d494f031c
Sanitizing source files in Housekeeper-Nightly
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9695 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-20 07:00:59 +00:00
bungeman@google.com
5e4fe21689
Fix shift detection in views on X.
...
On X, the meta keys are encoded in xkey.state, not xkey.keycode.
This fixes 'h' and 's' not working in SampleApp.
git-svn-id: http://skia.googlecode.com/svn/trunk@9694 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-19 23:06:00 +00:00
reed@google.com
d1f1b67f5e
post Expose event when we see an inval
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9693 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-19 20:56:45 +00:00
reed@google.com
6757a3c71f
combine glyph and image bulk alloc, and adjust initial alloc size, to reduce total waste from 50% to 30%
...
add diagnostics to measure cache efficiency
BUG=
Review URL: https://codereview.chromium.org/17449012
git-svn-id: http://skia.googlecode.com/svn/trunk@9691 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-19 19:25:36 +00:00
epoger@google.com
d88a3d8336
Add SkString::appendU32() and SkString::appendU64()
...
as needed to re-land r9682
R=reed@google.com
Review URL: https://codereview.chromium.org/17448012
git-svn-id: http://skia.googlecode.com/svn/trunk@9686 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-19 18:27:20 +00:00
commit-bot@chromium.org
b4e200ec6b
Make GrGLConfigConversionEffect work on Intel GPUs
...
BUG=247664
R=noel@chromium.org , bsalomon@chromium.org , reed@google.com , tomhudson@chromium.org , bsalomon@google.com
Author: jun.a.jiang@intel.com
Review URL: https://chromiumcodereview.appspot.com/15719007
git-svn-id: http://skia.googlecode.com/svn/trunk@9672 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-19 11:41:02 +00:00
commit-bot@chromium.org
7a11591e5e
Rename SkDrawCommand subclasses
...
SkDrawCommand subclass names are too generic and likely to clash in the default namespace.
This makes the header unusable in Chrome - for example, on Mac builders:
../../third_party/skia/src/utils/debugger/SkDrawCommand.h:251:7: error: redefinition of 'Comment'
class Comment : public SkDrawCommand {
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/AIFF.h:192:8: note: previous definition is here
struct Comment {
This CL renames SkDrawCommand subclasses using the following pattern: "${cmd}" -> "Sk${cmd}Command".
R=robertphillips@google.com , bungeman@google.com , djsollen@google.com
Author: fmalita@chromium.org
Review URL: https://chromiumcodereview.appspot.com/17101005
git-svn-id: http://skia.googlecode.com/svn/trunk@9667 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-18 20:20:55 +00:00
commit-bot@chromium.org
7fa22f3329
Smallest possible desktop application that uses Skia to render stuff.
...
Small Hello World smaple. Subclasses SkOSWindow.
R=caryclark@google.com
Author: sglez@google.com
Review URL: https://chromiumcodereview.appspot.com/16337012
git-svn-id: http://skia.googlecode.com/svn/trunk@9657 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-18 15:37:27 +00:00
skia.committer@gmail.com
a48595d863
Sanitizing source files in Housekeeper-Nightly
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9648 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-18 07:00:52 +00:00
commit-bot@chromium.org
344cf45a40
*** Perlin noise GM needs to be rebaselined ***
...
Enabling Perlin Noise on Android
I enabled the Perlin Noise shader on Android after doing some minor modifications to the shader, specifically for Android (and #ifdefed for Android, to make sure none of this affects other platforms).
For Tegra devices (Nexus 7, Xoom), a precision issue related to the color values read from textures caused the noise to read the wrong indices and produce bad noise. I fixed this by adding a founding of the values read by simply doing the equivalent of "colorValue = floor(colorValue * 255.0) / 255.0" to make sure we retrieve the colors that were written in the texture originally.
For non-Tegra devices (Nexus 10), dealing with values in the order of 4096.0 was problematic without using the "highp" precision setting. To solve this, a few variables were given the high precision setting.
Since both fixes don't seem to do considerable harm to the platforms that are not being targetted, I left both fixes on all android devices for now.
I also reduced the Perlin noise gm so that it takes less time to test it on the Xoom (Original time was about 20 seconds, this shold take less than 10, hopefully)
BUG=
R=senorblanco@google.com , bsalomon@google.com , sugoi@google.com , senorblanco@chromium.org
Author: sugoi@chromium.org
Review URL: https://chromiumcodereview.appspot.com/16818013
git-svn-id: http://skia.googlecode.com/svn/trunk@9637 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-17 14:19:01 +00:00
caryclark@google.com
d892bd8ba6
convert pathops to use SkSTArray where possible.
...
Replace SkTDArray with SkTArray and use SkSTArray when
the probable array size is known.
In a couple of places (spans, chases) the arrays are
constructed using insert() so SkTArrays can't be used for
now.
Also, add an optimization to cubic subdivide if either end
is zero or one.
BUG=
Review URL: https://codereview.chromium.org/16951017
git-svn-id: http://skia.googlecode.com/svn/trunk@9635 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-17 14:10:36 +00:00
reed@google.com
acb3d88cf8
use select() so we can wait for XEvents or our timer
...
poll for xevents using XPending
BUG=
Review URL: https://codereview.chromium.org/17275003
git-svn-id: http://skia.googlecode.com/svn/trunk@9633 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-17 13:42:43 +00:00
scroggo@google.com
daaea2d51f
Fixes for unpremul decode.
...
SkImageDecoder_CG.cpp:
If a non opaque bitmap was decoded, and the caller wants
unpremultiplied, unpremultiply the colors.
Always use the RGB colorspace, since the other colorspaces
do not match the desired bitmap format.
ImageDecodingTest:
Allow for a difference of 1 in each color component when comparing
the result of premultiplying the unpremultiplied decode with the
premultiplied decode, since I found an image (in WEBP format) where
the unpremultiplied colors did not compare perfectly in my comparison.
R=reed@google.com
Review URL: https://codereview.chromium.org/17084012
git-svn-id: http://skia.googlecode.com/svn/trunk@9628 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-14 20:39:48 +00:00
reed@google.com
ae72f470e0
remove unused line of code (from xcode's analysis)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9627 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-14 20:22:13 +00:00
egdaniel@google.com
f1d7de788b
Change general fill rect shader code to match geometry vers
...
-Matches shader implemented for alligned rects
-Uses multiplication instead of min (used in geom version)
to combine width and height coverages
R=bsalomon@google.com , robertphillips@google.com
Review URL: https://codereview.chromium.org/17035012
git-svn-id: http://skia.googlecode.com/svn/trunk@9626 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-14 19:25:53 +00:00
reed@google.com
079813e2da
speculative fix in TransitionView. don't validate after detachFromParent (we may have been deleted)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9619 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-14 17:46:07 +00:00
robertphillips@google.com
07a052484f
Fix for r9609
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9618 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-14 17:45:30 +00:00
scroggo@google.com
8e990eb440
Update SkBitmap::validate to respect Android flag.
...
Without this change, an SkBitmap with hardware mip will assert in
validate.
R=djsollen@google.com
Review URL: https://codereview.chromium.org/16870002
git-svn-id: http://skia.googlecode.com/svn/trunk@9614 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-14 15:55:56 +00:00
scroggo@google.com
2bbc2c945b
Add an option to create unpremultiplied bitmaps.
...
Currently they cannot be used directly by Skia, but
the pixels can be used elsewhere.
SkImageDecoder:
Add functions to require unpremultiplied output
and query the presence of the requirement
SkImageDecoder_libpng:
SkImageDecoder_libwebp:
SkImageDecoder_WIC:
Respect the requirement for unpremultiplied output.
TODO: Fix SkImageDecoder_CG.
SkScaledBitmapSampler:
Add procs to skip premultiplication and a boolean
parameter to use those procs.
ImageDecodingTest:
Test unpremultiplied bitmap decoding.
SampleUnpremul:
Add a sample which allows visually comparing between the
unpremultiplied version (copied into a premultiplied bitmap,
since drawing unpremultiplied is not currently supported)
and a premultiplied version of image files.
gm.h:
Add a getter for the resource path, so Samples can use it.
As of patch set 13, https://codereview.chromium.org/16816016/
and https://codereview.chromium.org/16983004/ , which were
approved separately.
R=reed@google.com
Review URL: https://codereview.chromium.org/16410009
git-svn-id: http://skia.googlecode.com/svn/trunk@9612 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-14 15:33:20 +00:00
commit-bot@chromium.org
99e0d08113
Update Alligned Rect Shader to match geometry version
...
-Also update to combine width and height coverage using multiplication
instead of using min
R=bsalomon@google.com , robertphillips@google.com
Author: egdaniel@google.com
Review URL: https://chromiumcodereview.appspot.com/16854012
git-svn-id: http://skia.googlecode.com/svn/trunk@9609 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-14 14:58:50 +00:00
commit-bot@chromium.org
459104ceea
Add MESA detection to GrContextInfo and use to decide whether to use GL_ALPHA or GL_RED.
...
Based on yunchao.he@intel.com's original change here: https://codereview.chromium.org/15994006/
R=yunchao.he@intel.com , robertphillips@google.com
Author: bsalomon@google.com
Review URL: https://chromiumcodereview.appspot.com/16955005
git-svn-id: http://skia.googlecode.com/svn/trunk@9608 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-14 14:42:56 +00:00
commit-bot@chromium.org
61c49f357a
Improve the performance of SkConvertConfig8888Pixels using Array lookup
...
BUG=242097
R=kbr@chromium.org , vangelis@chromium.org , zmo@chromium.org , gman@chromium.org , bsalomon@google.com , reed@google.com , tomhudson@chromium.org , noel@chromium.org
Author: jun.a.jiang@intel.com
Review URL: https://chromiumcodereview.appspot.com/15402003
git-svn-id: http://skia.googlecode.com/svn/trunk@9605 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-14 13:38:56 +00:00
skia.committer@gmail.com
5c493d5b3d
Sanitizing source files in Housekeeper-Nightly
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9602 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-14 07:00:49 +00:00
fmalita@google.com
86681b37bd
Expose debugger backend classes externally.
...
SkDebugCanvas & friends are useful beyond the Qt debugger app - Chromium's picture inspector (in development) is at the point where it could take advantage of it.
This patch moves SkDrawCommand, SkDebugCanvas & SkObjectParser from trunk/debugger to trunk/src/utils (since several tools already use these, this seems appropriate), and makes SkDrawCommand & SkDebugCanvas' symbols visible externally (SK_API).
R=reed@google.com
Review URL: https://codereview.chromium.org/16638014
git-svn-id: http://skia.googlecode.com/svn/trunk@9598 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-13 20:59:14 +00:00
reed@google.com
732c5d516a
fix warning related to && and || and parens
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9597 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-13 20:48:09 +00:00
reed@google.com
a25c94e50a
add validate to SkView for debugging
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9596 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-13 20:20:17 +00:00
robertphillips@google.com
f09b87dda3
Fix compiler error for r9592
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9595 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-13 20:06:44 +00:00
bsalomon@google.com
2fad5a8da9
Hopefully fix Android warning-as-error about uninit var.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9593 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-13 19:47:23 +00:00
bsalomon@google.com
eb6879f50a
Replace fixed-size array of effect stages in GrDrawState with two appendable arrays, one for color, one for coverage.
...
R=robertphillips@google.com
Review URL: https://codereview.chromium.org/16952006
git-svn-id: http://skia.googlecode.com/svn/trunk@9592 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-13 19:34:18 +00:00
bsalomon@google.com
21c10c5ff5
Make text context responsible for setting GrPaint on GrDrawState.
...
R=robertphillips@google.com
Review URL: https://codereview.chromium.org/16928010
git-svn-id: http://skia.googlecode.com/svn/trunk@9588 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-13 17:44:07 +00:00
reed@google.com
7fb04bcc31
oops, fix missing change in 9532, setting hashbits to 8
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9581 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-13 14:34:51 +00:00
mike@reedtribe.org
1d32cc67f7
add canvas scale and rotate
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9564 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-13 01:28:56 +00:00
senorblanco@chromium.org
b1b3d5122e
Disable the unpremultiply/remultiply in SkArithmeticMode, both raster and GPU, since the SVG spec actually defines arithmetic compositing to operate on premul colours directly.
...
The unpremul/remul code has been placed behind a gUseUnpremul global, which is default false. The non-unpremul path uses a min() to keep the colours to valid premult values.
Note: This change will require new baselines for the arithmode and xfermodeimagefilter GMs.
R=reed@google.com
Review URL: https://codereview.chromium.org/16034013
git-svn-id: http://skia.googlecode.com/svn/trunk@9555 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-12 22:15:43 +00:00
commit-bot@chromium.org
ace2269edf
Fixed a bug with linear gradient PDF matrices and added test cases
...
R=vandebo@chromium.org , reed@google.com
Author: richardlin@chromium.org
Review URL: https://chromiumcodereview.appspot.com/16094020
git-svn-id: http://skia.googlecode.com/svn/trunk@9553 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-12 21:33:02 +00:00
reed@google.com
01efe139af
remove leftover printf
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9552 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-12 21:07:55 +00:00
reed@google.com
7de1e3fe3e
test thick stroking of conics
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9535 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-12 17:46:41 +00:00
reed@google.com
b8b619a158
use 8 bits for fontcache hash
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9532 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-12 17:14:37 +00:00
bsalomon@google.com
42db2e4513
Fixes to make the gm run when GrContext can't be created for ANGLE context.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9510 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-11 19:22:44 +00:00
commit-bot@chromium.org
0a1c3872de
Remove the non-separable blur because it is no longer used.
...
R=senorblanco@chromium.org , reed@google.com
Author: arbesfeld@chromium.org
Review URL: https://chromiumcodereview.appspot.com/16750002
git-svn-id: http://skia.googlecode.com/svn/trunk@9503 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-11 15:23:42 +00:00
commit-bot@chromium.org
6fbe54c663
Compact the clipstack for kReplace_Op'd geometry
...
When adding a clip rect or clip path to the stack with the
kReplace_Op operation, remove all previous elements within the
same save frame (elements with fSaveCount equal to the current
fSaveCount of the stack). This prevents unbounded growth of the
clipstack for long-lived instances that gets reused.
Addresses https://code.google.com/p/skia/issues/detail?id=748
R=robertphillips@google.com
Author: fs@opera.com
Review URL: https://chromiumcodereview.appspot.com/16160020
git-svn-id: http://skia.googlecode.com/svn/trunk@9502 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-11 11:01:48 +00:00
mike@reedtribe.org
792bbd14c6
add drawImage to lua
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9500 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-11 02:20:28 +00:00
robertphillips@google.com
5f9f2b0875
Improve batching of drawBitmap* calls
...
https://codereview.chromium.org/16406006/
git-svn-id: http://skia.googlecode.com/svn/trunk@9499 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-10 22:07:19 +00:00
reed@google.com
4e05fd25c8
add conic support to hairlines
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9493 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-10 18:58:11 +00:00
senorblanco@chromium.org
d0925240ef
Force checking of all color, stencil and FBO allocations for SkSurface_Gpu. This fixes the software canvas fallback in Chrome.
...
R=bsalomon@google.com
Review URL: https://codereview.chromium.org/15643013
git-svn-id: http://skia.googlecode.com/svn/trunk@9487 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-10 15:06:09 +00:00
sugoi@google.com
d537af50fc
Fixed gpu perlin noise on Windows
...
I just cleaned up and re-ordered some instructions to reduce the number of registers used under the register limit. Instead of looping over channels, the function now only loops over octaves and computes all 4 channels separately within each octave loop. I made a noise function to make it simpler to make the changes and I fixed the code's alignment so that it's more readable.
R=bsalomon@google.com , senorblanco@chromium.org
Review URL: https://codereview.chromium.org/15753005
git-svn-id: http://skia.googlecode.com/svn/trunk@9486 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-10 13:59:25 +00:00
skia.committer@gmail.com
370c534c19
Sanitizing source files in Housekeeper-Nightly
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9484 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-09 07:01:05 +00:00
mike@reedtribe.org
73d9f1c651
more paint methods to lua
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9483 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-09 01:54:56 +00:00
mike@reedtribe.org
fb85824521
add pdf lib to lua_pictures to fix linker error
...
Revert "Revert "add document and textAlign support to lua""
This reverts commit f603260d7df6315788af3eadb18db556daf41c13.
git-svn-id: http://skia.googlecode.com/svn/trunk@9482 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-08 16:39:44 +00:00
mike@reedtribe.org
09efb177ed
Revert "add document and textAlign support to lua"
...
This reverts commit cdeacf8628757dc3464b26edd148c83bff02f43d.
git-svn-id: http://skia.googlecode.com/svn/trunk@9481 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-08 13:50:37 +00:00
mike@reedtribe.org
bdf59df6a1
add document and textAlign support to lua
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9480 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-08 13:25:23 +00:00
skia.committer@gmail.com
6319367bdc
Sanitizing source files in Housekeeper-Nightly
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9478 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-08 07:01:13 +00:00
mike@reedtribe.org
e6469f10c8
add drawtext to lua
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9477 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-08 03:15:47 +00:00
reed@google.com
99ac02bb70
SkDocument base for pdf, xps, etc.
...
R=scroggo@google.com
Review URL: https://codereview.chromium.org/16660002
git-svn-id: http://skia.googlecode.com/svn/trunk@9476 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-07 20:30:16 +00:00
djsollen@google.com
e47e7d17a6
Fix crash when attempting to use a font fallback chain with a custom font.
...
This is a cherry-pick of a CL that has already been merged into Android.
Review URL: https://codereview.chromium.org/16005011
git-svn-id: http://skia.googlecode.com/svn/trunk@9468 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-06 21:25:09 +00:00
bsalomon@google.com
2c84aa3598
separate arrays for color and coverage effects.
...
R=robertphillips@google.com
Review URL: https://codereview.chromium.org/16180006
git-svn-id: http://skia.googlecode.com/svn/trunk@9465 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-06 20:28:57 +00:00
bsalomon@google.com
804e9941eb
Make GrGLProgram no longer depend on kNumStages
...
R=robertphillips@google.com
Review URL: https://codereview.chromium.org/16158007
git-svn-id: http://skia.googlecode.com/svn/trunk@9462 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-06 18:04:38 +00:00
bungeman@google.com
88605bb51d
Fix leak in SkFontHost_fontconfig temporary code.
...
https://codereview.chromium.org/16525003
git-svn-id: http://skia.googlecode.com/svn/trunk@9460 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-06 17:25:42 +00:00
commit-bot@chromium.org
a15f7e5b96
Use all available texture units.
...
R=robertphillips@google.com , jvanverth@google.com
Author: bsalomon@google.com
Review URL: https://chromiumcodereview.appspot.com/16452007
git-svn-id: http://skia.googlecode.com/svn/trunk@9451 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-05 23:29:25 +00:00
reed@google.com
5a64902ee9
call through to the device from SkDraw
...
BUG=
R=robertphillips@google.com
Review URL: https://codereview.chromium.org/16378003
git-svn-id: http://skia.googlecode.com/svn/trunk@9449 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-05 18:00:30 +00:00
djsollen@google.com
4fa748d580
Fix issues related to resolving fonts based on name.
...
1) non-system font files are not added to the cache.
2) We cache the default fonts for quick lookup.
Review URL: https://codereview.chromium.org/16439004
git-svn-id: http://skia.googlecode.com/svn/trunk@9441 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-05 14:20:25 +00:00
skia.committer@gmail.com
8f6ef4010f
Sanitizing source files in Housekeeper-Nightly
...
git-svn-id: http://skia.googlecode.com/svn/trunk@9440 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-05 07:01:06 +00:00
reed@google.com
8cb1088034
change impl to explicitly store length as u32, rather than size_t, so we keep a packed struct on 64bit machines
...
BUG=
Review URL: https://codereview.chromium.org/16356006
git-svn-id: http://skia.googlecode.com/svn/trunk@9436 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-04 20:36:52 +00:00