Project

General

Profile

« Previous | Next » 

Revision f6d884d5

Added by Leszek Koltunski over 7 years ago

Complete the split DistortedObject -> (DistortedTexture,DistortedEffectQueue)

View differences:

src/main/java/org/distorted/examples/plainmonalisa/RenderHandler.java
28 28
///////////////////////////////////////////////////////////////////////////////////////////////////
29 29
// Used for messages sent from the UI thread to the render thread.
30 30

  
31
public class RenderHandler extends Handler
31
class RenderHandler extends Handler
32 32
  {
33 33
  private static final String TAG = "RenderHandler";
34 34

  
......
41 41

  
42 42
///////////////////////////////////////////////////////////////////////////////////////////////////
43 43

  
44
  public RenderHandler(RenderThread rt)
44
  RenderHandler(RenderThread rt)
45 45
    {
46 46
    mWeakRenderThread = new WeakReference<>(rt);
47 47
    }
48 48

  
49 49
///////////////////////////////////////////////////////////////////////////////////////////////////
50 50

  
51
  public void sendSurfaceCreated()
51
  void sendSurfaceCreated()
52 52
    {
53 53
    sendMessage(obtainMessage(RenderHandler.MSG_SURFACE_CREATED));
54 54
    }
55 55

  
56 56
///////////////////////////////////////////////////////////////////////////////////////////////////
57 57

  
58
  public void sendSurfaceChanged(int format, int width, int height)
58
  void sendSurfaceChanged(int format, int width, int height)
59 59
    {
60 60
    sendMessage(obtainMessage(RenderHandler.MSG_SURFACE_CHANGED, width, height));
61 61
    }
62 62

  
63 63
///////////////////////////////////////////////////////////////////////////////////////////////////
64 64

  
65
  public void sendDoFrame(long frameTimeNanos)
65
  void sendDoFrame(long frameTimeNanos)
66 66
    {
67 67
    sendMessage(obtainMessage(RenderHandler.MSG_DO_FRAME, (int) (frameTimeNanos >> 32), (int) frameTimeNanos));
68 68
    }
69 69

  
70 70
///////////////////////////////////////////////////////////////////////////////////////////////////
71 71

  
72
  public void sendShutdown()
72
  void sendShutdown()
73 73
    {
74 74
    sendMessage(obtainMessage(RenderHandler.MSG_SHUTDOWN));
75 75
    }

Also available in: Unified diff