Commit 130c27a3 by Nicolas Capens

Move blit routine generation to a method.

Bug 21716622 Change-Id: Ida62ad1f1f51f035969754f2c5ff800a0afc6fd5 Reviewed-on: https://swiftshader-review.googlesource.com/3452Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com> Tested-by: 's avatarNicolas Capens <capn@google.com>
parent a8b364b7
...@@ -22,18 +22,6 @@ namespace sw ...@@ -22,18 +22,6 @@ namespace sw
{ {
class Blitter class Blitter
{ {
public:
Blitter();
virtual ~Blitter();
void blit(Surface *source, const SliceRect &sRect, Surface *dest, const SliceRect &dRect, bool filter);
void blit3D(Surface *source, Surface *dest);
private:
bool read(Float4 &color, Pointer<Byte> element, Format format);
bool blitReactor(Surface *source, const SliceRect &sRect, Surface *dest, const SliceRect &dRect, bool filter);
struct BlitState struct BlitState
{ {
bool operator==(const BlitState &state) const bool operator==(const BlitState &state) const
...@@ -67,6 +55,19 @@ namespace sw ...@@ -67,6 +55,19 @@ namespace sw
int sHeight; int sHeight;
}; };
public:
Blitter();
virtual ~Blitter();
void blit(Surface *source, const SliceRect &sRect, Surface *dest, const SliceRect &dRect, bool filter);
void blit3D(Surface *source, Surface *dest);
private:
bool read(Float4 &color, Pointer<Byte> element, Format format);
bool blitReactor(Surface *source, const SliceRect &sRect, Surface *dest, const SliceRect &dRect, bool filter);
Routine *generate(BlitState &state);
RoutineCache<BlitState> *blitCache; RoutineCache<BlitState> *blitCache;
}; };
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment