gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash ChangeLog libbase/image.cpp libbase/image.h


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog libbase/image.cpp libbase/image.h
Date: Wed, 02 May 2007 12:19:58 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/05/02 12:19:58

Modified files:
        .              : ChangeLog 
        libbase        : image.cpp image.h 

Log message:
                * libbase/image.{cpp,h}: move documentation of the update() 
method
                  from cpp to h file. This is the most time-expensive routine in
                  libgnashbase when playing youtube.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3059&r2=1.3060
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/image.cpp?cvsroot=gnash&r1=1.19&r2=1.20
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/image.h?cvsroot=gnash&r1=1.12&r2=1.13

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.3059
retrieving revision 1.3060
diff -u -b -r1.3059 -r1.3060
--- ChangeLog   2 May 2007 12:11:31 -0000       1.3059
+++ ChangeLog   2 May 2007 12:19:58 -0000       1.3060
@@ -1,5 +1,8 @@
 2007-05-02 Sandro Santilli <address@hidden>
 
+       * libbase/image.{cpp,h}: move documentation of the update() method
+         from cpp to h file. This is the most time-expensive routine in 
+         libgnashbase when playing youtube.
        * libbase/LoadThread.{cpp,h}: isPositionConfirmed inlined and
          const-corrected.
 

Index: libbase/image.cpp
===================================================================
RCS file: /sources/gnash/gnash/libbase/image.cpp,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- libbase/image.cpp   11 Apr 2007 17:54:21 -0000      1.19
+++ libbase/image.cpp   2 May 2007 12:19:58 -0000       1.20
@@ -29,13 +29,6 @@
        {
        }
 
-       /// Copy image data from a buffer.
-       //
-       /// Note that this buffer MUST have the same m_pitch, or unexpected 
things
-       /// will happen. In general, it is only safe to copy from another 
image_base
-       /// (or derivative thereof) or unexpected things will happen. 
-       ///
-       /// @param data buffer to copy data from.
        void image_base::update(uint8_t* data)
        {
                memcpy(m_data, data, m_pitch * m_height);

Index: libbase/image.h
===================================================================
RCS file: /sources/gnash/gnash/libbase/image.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- libbase/image.h     10 Apr 2007 22:55:20 -0000      1.12
+++ libbase/image.h     2 May 2007 12:19:58 -0000       1.13
@@ -41,7 +41,17 @@
                int     m_pitch;        // byte offset from one row to the next
 
                image_base(uint8_t* data, int width, int height, int pitch, 
id_image type);
+
+               /// Copy image data from a buffer.
+               //
+               /// Note that this buffer MUST have the same m_pitch, or 
unexpected things
+               /// will happen. In general, it is only safe to copy from 
another image_base
+               /// (or derivative thereof) or unexpected things will happen. 
+               ///
+               /// @param data buffer to copy data from.
+               ///
                void update(uint8_t* data);
+
                virtual ~image_base() {}
        };
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]