Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(298)

Issue 6852071: Deferred canvas can now be flushed if an image is beyond a certain size to avoid a costly image cop… (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by sugoi
Modified:
12 years, 1 month ago
Reviewers:
junov, sugoi1, junov1, reed1
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Deferred canvas can now be flushed if an image is beyond a certain size to avoid a costly image copy. BUG=http://code.google.com/p/chromium/issues/detail?id=137924 TEST=TestDeferredCanvasBitmapSizeThreshold unit test Committed: https://code.google.com/p/skia/source/detail?r=6527

Patch Set 1 #

Total comments: 10

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -34 lines) Patch
M include/config/SkUserConfig.h View 1 1 chunk +8 lines, -0 lines 0 comments Download
M include/utils/SkDeferredCanvas.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M src/utils/SkDeferredCanvas.cpp View 1 2 3 10 chunks +59 lines, -34 lines 0 comments Download
M tests/DeferredCanvasTest.cpp View 1 2 3 2 chunks +42 lines, -0 lines 0 comments Download

Messages

Total messages: 9
sugoi
12 years, 1 month ago (2012-11-20 17:06:54 UTC) #1
junov
https://codereview.appspot.com/6852071/diff/1/include/config/SkUserConfig.h File include/config/SkUserConfig.h (right): https://codereview.appspot.com/6852071/diff/1/include/config/SkUserConfig.h#newcode205 include/config/SkUserConfig.h:205: is considered too large and the copy done by ...
12 years, 1 month ago (2012-11-20 18:34:13 UTC) #2
sugoi
On 2012/11/20 18:34:13, junov wrote: > https://codereview.appspot.com/6852071/diff/1/src/utils/SkDeferredCanvas.cpp#newcode584 > src/utils/SkDeferredCanvas.cpp:584: size_t > SkDeferredCanvas::getBitmapSizeThreshold() const { > ...
12 years, 1 month ago (2012-11-21 13:57:27 UTC) #3
junov
https://codereview.appspot.com/6852071/diff/8001/src/utils/SkDeferredCanvas.cpp File src/utils/SkDeferredCanvas.cpp (right): https://codereview.appspot.com/6852071/diff/8001/src/utils/SkDeferredCanvas.cpp#newcode539 src/utils/SkDeferredCanvas.cpp:539: device ? device->getBitmapSizeThreshold() : Ternary operator not necessary. If ...
12 years, 1 month ago (2012-11-21 14:50:38 UTC) #4
sugoi
done
12 years, 1 month ago (2012-11-21 15:36:27 UTC) #5
junov
On 2012/11/21 15:36:27, sugoi wrote: > done lgtm
12 years, 1 month ago (2012-11-21 15:39:07 UTC) #6
reed1
What is the need for the #define, since there is a runtime API for the ...
12 years, 1 month ago (2012-11-21 15:57:24 UTC) #7
junov
You're right, let's just have a local constant in the .cpp file with the default ...
12 years, 1 month ago (2012-11-21 16:16:39 UTC) #8
sugoi1
12 years, 1 month ago (2012-11-21 16:18:03 UTC) #9
Ok, will do.

On Wed, Nov 21, 2012 at 11:16 AM, Justin Novosad <junov@google.com> wrote:

> You're right, let's just have a local constant in the .cpp file with the
> default (~0)
>
>
> On Wed, Nov 21, 2012 at 10:57 AM, <reed@google.com> wrote:
>
>> What is the need for the #define, since there is a runtime API for the
>> threshold?
>>
>>
https://codereview.appspot.**com/6852071/<https://codereview.appspot.com/6852...
>>
>
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b