reed@google.com
cde92111d5
remove SkDeviceFactory from the collective consciousness, now that devices know
...
how to create compatible siblings.
git-svn-id: http://skia.googlecode.com/svn/trunk@1808 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-06 20:00:52 +00:00
bsalomon@google.com
1e257a5db3
Remove nested scope resolutions in GrGpuGLShaders and use enum counts for generating random values in unit test.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1807 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-06 19:52:16 +00:00
reed@google.com
45f9ce7a62
make the mac window resizeable again
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1806 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-06 19:45:53 +00:00
reed@google.com
13636fe4b9
add debugging code for degenerate gradients (to be removed later)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1805 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-06 18:25:08 +00:00
reed@google.com
5f068f15cc
notice if the bitmap failed to load
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1804 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-06 18:16:00 +00:00
reed@google.com
a03c97943b
fix typo:
...
this-make3DReady()
should be
this->make3DReady()
git-svn-id: http://skia.googlecode.com/svn/trunk@1803 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-06 18:01:20 +00:00
reed@google.com
29038ed2ab
always use grcontext to get the bits to the screen
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1802 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-06 17:56:47 +00:00
bsalomon@google.com
2c17fcdc45
Reduce gets of ext string and check validity of stencil format enums
...
Review URL: http://codereview.appspot.com/4678043/
git-svn-id: http://skia.googlecode.com/svn/trunk@1801 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-06 17:47:02 +00:00
bsalomon@google.com
25fd36c7ef
Indexed drawing for paths with multiple contours
...
Review URL: http://codereview.appspot.com/4648071/
git-svn-id: http://skia.googlecode.com/svn/trunk@1800 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-06 17:41:08 +00:00
reed@google.com
57c8d833cd
revert prev hack around make3DReady
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1799 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-06 15:27:03 +00:00
reed@google.com
c157531aa2
force grcontext to be created at startup
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1798 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-06 15:11:07 +00:00
reed@google.com
1b195bc8fd
fix return value for make_bitmap
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1797 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-06 15:10:25 +00:00
reed@google.com
3cec4d71e6
check-point for testing drawBitmap [raster,gpu] -> [raster,gpu]
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1796 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-06 13:59:47 +00:00
reed@google.com
a3237875f8
suppress printfs
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1795 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-05 19:20:48 +00:00
reed@google.com
65d8bb096a
add SK_API to SkMatrix44
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1794 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-05 19:12:59 +00:00
reed@google.com
3ef80cf14c
suppress printfs
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1793 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-05 19:09:47 +00:00
reed@google.com
37a201231b
add SkEmptyShader, and return it from CreateBitmapShader if the bitmap is empty
...
(i.e. has no pixels at all)
git-svn-id: http://skia.googlecode.com/svn/trunk@1792 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-05 18:54:12 +00:00
reed@google.com
1d6ee0bd4d
defer allocating blitter until we know we need it (i.e. gpu-devices don't need,
...
which they signal by setting a custom D1G proc)
git-svn-id: http://skia.googlecode.com/svn/trunk@1791 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-05 17:44:56 +00:00
reed@google.com
b5c97895f3
don't call setContext on shader (not necessary), since now gradients ensure that
...
their bitmap will be built with opaque colors. Also, this avoids calling
lockPixels on the shader's bitmap (if it has one), which is usually not needed
or desired, given that we're a gpu device.
git-svn-id: http://skia.googlecode.com/svn/trunk@1790 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-05 17:04:51 +00:00
reed@google.com
95eed983be
ensure that our bitmap is built with opaque cachedalpha
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1789 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-05 17:01:56 +00:00
vandebo@chromium.org
d3a8c94dfd
A bit set class. Will be used for font subsetting.
...
Committed on behalf of arthurhsu@chromium.org with a few final nits.
Original CL: http://codereview.appspot.com/4627077
Review URL: http://codereview.appspot.com/4657070
git-svn-id: http://skia.googlecode.com/svn/trunk@1788 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-02 01:26:37 +00:00
bsalomon@google.com
fc899274d9
Offset bounds in GrDefaultPathRenderer by fTranslate.
...
Review URL: http://codereview.appspot.com/4667053/
git-svn-id: http://skia.googlecode.com/svn/trunk@1787 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-01 22:10:30 +00:00
epoger@google.com
9ef2d8382f
Reverting r1775 at Mike and Brian's request
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1786 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-01 21:12:20 +00:00
epoger@google.com
ea5dfa87b2
merge of SkiOSSampleApp into SampleApp, still a work in progress
...
http://codereview.appspot.com/4636078/
git-svn-id: http://skia.googlecode.com/svn/trunk@1785 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-01 21:01:32 +00:00
bsalomon@google.com
8bcc6f47b0
export SkAutoSTMalloc (for multi-dll chrome build)
...
Review URL: http://codereview.appspot.com/4643063/
git-svn-id: http://skia.googlecode.com/svn/trunk@1784 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-01 20:45:29 +00:00
tomhudson@google.com
ee69472409
Remove compile warning by removing unnecessary output.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1783 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-01 20:22:01 +00:00
epoger@google.com
8846cb22ce
Create new 'skia_os' variable to replace use of 'OS' in most places.
...
http://codereview.appspot.com/4627085
git-svn-id: http://skia.googlecode.com/svn/trunk@1782 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-01 20:20:07 +00:00
epoger@google.com
5351b373b3
combine target_defaults.gypi into common.gypi
...
http://codereview.appspot.com/4654080
git-svn-id: http://skia.googlecode.com/svn/trunk@1780 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-01 17:16:26 +00:00
tomhudson@google.com
0c8d93a940
Reworks r1770 so that users who have replaced SkUserConfig don't have to
...
make any changes to continue compiling successfully.
git-svn-id: http://skia.googlecode.com/svn/trunk@1779 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-01 17:08:26 +00:00
bsalomon@google.com
9ae4429f9d
Don't send NULL buffer data hint in chrome
...
Review URL: http://codereview.appspot.com/4657067/
git-svn-id: http://skia.googlecode.com/svn/trunk@1778 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-01 15:21:59 +00:00
bsalomon@google.com
ee435122d7
Tesselate path once for tiled offscreen AA
...
Review URL: http://codereview.appspot.com/4661062/
git-svn-id: http://skia.googlecode.com/svn/trunk@1777 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-01 14:57:55 +00:00
reed@google.com
db2a09f240
fix chrome build, check OSX version before referencing 10.6 APIs
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1776 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-01 14:35:40 +00:00
junov@google.com
22c8bb8ebd
Fixing several issues with rendering blurred bitmaps with Ganesh
...
BUG=http://code.google.com/p/skia/issues/detail?id=305
REVIEW=http://codereview.appspot.com/4630073/
git-svn-id: http://skia.googlecode.com/svn/trunk@1775 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-30 22:16:06 +00:00
bsalomon@google.com
3582bf9e3d
Remove GrAuto*Malloc, replace with SkAuto*Malloc
...
Review URL: http://codereview.appspot.com/4629088
git-svn-id: http://skia.googlecode.com/svn/trunk@1774 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-30 21:32:31 +00:00
reed@google.com
5d2fef0d83
fix asserts in new premul inline function
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1773 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-30 21:17:22 +00:00
reed@google.com
0b8b3bb083
make inline version of premultiply, to speed up gradient creation.
...
We could speed-up again if we...
- respected kDither and only built 1/2 of the table for non-dither requests
- output simple params to the gpu rather than always a texture
- detected that we have no alpha, and then can skip premul per-entry
git-svn-id: http://skia.googlecode.com/svn/trunk@1772 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-30 21:06:22 +00:00
epoger@google.com
e620ad299f
Revert r1768
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1771 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-30 21:03:02 +00:00
tomhudson@google.com
278cbb452a
Enable WebKit/Chromium style logging for Skia.
...
New macros called in Ganesh functions; by default are compiled away,
in example code resolve to printout, and are compatible with WebKit/Chromium
event logging and GPU profiler.
git-svn-id: http://skia.googlecode.com/svn/trunk@1770 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-30 19:37:01 +00:00
junov@google.com
4ee7ae5dcf
Adding the notion of a volatile bitmap to SkBitmap.
...
Volatility is a hint that indicates that the contents of a bitmap
are ephemeral. SkGpuDevice will not preserve volatile bitmaps
in its texture cache, and will use textures from a pool of
keyless (recyclable) textures to avoid the performance hit of
texture allocation and release.
A subsequent change is required in webkit in order to take advantage
of this optimization. putImageData, and other methods that create
temporary bitmaps will have to mark their bitmaps as volatile.
before rendering them through skia.
git-svn-id: http://skia.googlecode.com/svn/trunk@1769 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-30 17:30:49 +00:00
epoger@google.com
72798e4808
Roll gyp version from 907 to 936
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1768 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-30 16:51:49 +00:00
tomhudson@google.com
afec7ba759
Fix bug where equality was used instead of assignment.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1767 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-30 14:47:55 +00:00
tomhudson@google.com
3a1f6a06cc
SkStringPrintf helper fucntion + a new unit test for it.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1766 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-30 14:39:52 +00:00
epoger@google.com
b371ed1784
Fix LCD text filtering
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1765 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-29 21:20:52 +00:00
epoger@google.com
5070d79edd
Fix build for old versions of freetype without FT_Library_SetLcdFilter
...
http://codereview.appspot.com/4625071/
git-svn-id: http://skia.googlecode.com/svn/trunk@1764 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-29 20:43:14 +00:00
reed@google.com
cd88d7c233
Don't use the CreateWithData variant: not needed, and isn't available in chrome
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1763 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-29 20:12:38 +00:00
bsalomon@google.com
0a09eef790
Change true and false to 1 and 0 in macros that are used to conditionally compile code.
...
Review URL: http://codereview.appspot.com/4664056/
git-svn-id: http://skia.googlecode.com/svn/trunk@1762 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-29 19:42:58 +00:00
bsalomon@google.com
cb0c5ab54d
Fix valgrind reported issue, uninit mem in AutoReleaseGeometry::reset()
...
Review URL: http://codereview.appspot.com/4667048/
git-svn-id: http://skia.googlecode.com/svn/trunk@1761 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-29 17:48:17 +00:00
reed@google.com
f83ceb9973
extract a new factory when we get a new device
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1760 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-29 17:12:47 +00:00
reed@google.com
ba861ca594
add rebaselined version, now that we force font smoothing
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1756 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-29 15:26:59 +00:00
reed@google.com
7dba74cec3
update now that we force font smoothing for the tests
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1755 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-29 15:17:21 +00:00