[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r10699: Return bitmap/gradient matri
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r10699: Return bitmap/gradient matrices by const-ref, not value (worth checking users for possible optimizations) |
Date: |
Sat, 14 Mar 2009 00:10:05 +0100 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 10699
committer: Sandro Santilli <address@hidden>
branch nick: gnash-head-backup
timestamp: Sat 2009-03-14 00:10:05 +0100
message:
Return bitmap/gradient matrices by const-ref, not value (worth checking users
for possible optimizations)
modified:
libcore/fill_style.cpp
libcore/fill_style.h
=== modified file 'libcore/fill_style.cpp'
--- a/libcore/fill_style.cpp 2009-01-22 20:10:39 +0000
+++ b/libcore/fill_style.cpp 2009-03-13 23:10:05 +0000
@@ -330,14 +330,14 @@
}
}
-SWFMatrix
+const SWFMatrix&
fill_style::getBitmapMatrix() const
{
assert(m_type != SWF::FILL_SOLID);
return m_bitmap_matrix;
}
-SWFMatrix
+const SWFMatrix&
fill_style::getGradientMatrix() const
{
// TODO: Why do we separate bitmap and gradient matrices?
=== modified file 'libcore/fill_style.h'
--- a/libcore/fill_style.h 2009-01-22 20:10:39 +0000
+++ b/libcore/fill_style.h 2009-03-13 23:10:05 +0000
@@ -175,10 +175,10 @@
BitmapInfo* get_bitmap_info() const;
/// Returns the bitmap transformation SWFMatrix
- SWFMatrix getBitmapMatrix() const;
+ const SWFMatrix& getBitmapMatrix() const;
/// Returns the gradient transformation SWFMatrix
- SWFMatrix getGradientMatrix() const;
+ const SWFMatrix& getGradientMatrix() const;
/// Returns the number of color stops in the gradient
int get_color_stop_count() const;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r10699: Return bitmap/gradient matrices by const-ref, not value (worth checking users for possible optimizations),
Sandro Santilli <=