| OLD | NEW |
| 1 /* | 1 /* |
| 2 * libjingle | 2 * libjingle |
| 3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
| 9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 // Needs to be called on the main thread. | 53 // Needs to be called on the main thread. |
| 54 bool Initialize(); | 54 bool Initialize(); |
| 55 | 55 |
| 56 private: | 56 private: |
| 57 bool DrawFrame(); | 57 bool DrawFrame(); |
| 58 | 58 |
| 59 static OSStatus DrawEventHandler(EventHandlerCallRef handler, | 59 static OSStatus DrawEventHandler(EventHandlerCallRef handler, |
| 60 EventRef event, | 60 EventRef event, |
| 61 void* data); | 61 void* data); |
| 62 rtc::scoped_ptr<uint8[]> image_; | 62 rtc::scoped_ptr<uint8_t[]> image_; |
| 63 rtc::CriticalSection image_crit_; | 63 rtc::CriticalSection image_crit_; |
| 64 int image_width_; | 64 int image_width_; |
| 65 int image_height_; | 65 int image_height_; |
| 66 int x_; | 66 int x_; |
| 67 int y_; | 67 int y_; |
| 68 CGImageRef image_ref_; | 68 CGImageRef image_ref_; |
| 69 WindowRef window_ref_; | 69 WindowRef window_ref_; |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 } // namespace cricket | 72 } // namespace cricket |
| 73 | 73 |
| 74 #endif // TALK_MEDIA_DEVICES_CARBONVIDEORENDERER_H_ | 74 #endif // TALK_MEDIA_DEVICES_CARBONVIDEORENDERER_H_ |
| OLD | NEW |