Closed
Bug 878032
Opened 11 years ago
Closed 11 years ago
Factor out some none-RenderTarget dependent code
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
FIXED
mozilla24
People
(Reporter: bas.schouten, Assigned: bas.schouten)
References
Details
Attachments
(2 files)
13.63 KB,
patch
|
jrmuizel
:
review+
|
Details | Diff | Splinter Review |
18.11 KB,
patch
|
jrmuizel
:
review+
|
Details | Diff | Splinter Review |
For the Direct2D 1.1 Moz2D backend there's a couple of functions currently inside the Direct2D 1.0 backend that could simply be reused. Those should be factored out of the Direct2D 1.0 backend.
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #756518 -
Flags: review?(jmuizelaar)
Updated•11 years ago
|
Attachment #756518 -
Flags: review?(jmuizelaar) → review+
Assignee | ||
Comment 2•11 years ago
|
||
We can share this code too so we should.
Attachment #762448 -
Flags: review?(jmuizelaar)
Comment 3•11 years ago
|
||
Comment on attachment 762448 [details] [diff] [review]
Factor out partial bitmap uploading and scaling.
Review of attachment 762448 [details] [diff] [review]:
-----------------------------------------------------------------
::: BaseRect.h
@@ +91,5 @@
> Sub result;
> + result.x = std::max<T>(x, aRect.x);
> + result.y = std::max<T>(y, aRect.y);
> + result.width = std::min<T>(XMost(), aRect.XMost()) - result.x;
> + result.height = std::min<T>(YMost(), aRect.YMost()) - result.y;
This seems unrelated?
Attachment #762448 -
Flags: review?(jmuizelaar) → review+
Assignee | ||
Comment 4•11 years ago
|
||
(In reply to Jeff Muizelaar [:jrmuizel] from comment #3)
> Comment on attachment 762448 [details] [diff] [review]
> Factor out partial bitmap uploading and scaling.
>
> Review of attachment 762448 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: BaseRect.h
> @@ +91,5 @@
> > Sub result;
> > + result.x = std::max<T>(x, aRect.x);
> > + result.y = std::max<T>(y, aRect.y);
> > + result.width = std::min<T>(XMost(), aRect.XMost()) - result.x;
> > + result.height = std::min<T>(YMost(), aRect.YMost()) - result.y;
>
> This seems unrelated?
I could put it in a separate patch but I didn't bother to. It's a dependency for this bug. This change caused the Helpers2D file to be included in ScaledFontDWrite which caused this to cause compile errors.
Comment 5•11 years ago
|
||
Backed out because of Windows build bustage: https://hg.mozilla.org/integration/mozilla-inbound/rev/5b3196ad66f4
Comment 6•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/4267a8556659
https://hg.mozilla.org/mozilla-central/rev/6ee152636ad4
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
You need to log in
before you can comment on or make changes to this bug.
Description
•