| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "remoting/host/capturer_fake.h" | 5 #include "remoting/host/capturer_fake.h" |
| 6 | 6 |
| 7 #include "gfx/rect.h" | 7 #include "ui/gfx/rect.h" |
| 8 | 8 |
| 9 namespace remoting { | 9 namespace remoting { |
| 10 | 10 |
| 11 // CapturerFake generates a white picture of size kWidth x kHeight with a | 11 // CapturerFake generates a white picture of size kWidth x kHeight with a |
| 12 // rectangle of size kBoxWidth x kBoxHeight. The rectangle moves kSpeed pixels | 12 // rectangle of size kBoxWidth x kBoxHeight. The rectangle moves kSpeed pixels |
| 13 // per frame along both axes, and bounces off the sides of the screen. | 13 // per frame along both axes, and bounces off the sides of the screen. |
| 14 static const int kWidth = 800; | 14 static const int kWidth = 800; |
| 15 static const int kHeight = 600; | 15 static const int kHeight = 600; |
| 16 static const int kBoxWidth = 140; | 16 static const int kBoxWidth = 140; |
| 17 static const int kBoxHeight = 140; | 17 static const int kBoxHeight = 140; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 row[x * kBytesPerPixel] = r; | 95 row[x * kBytesPerPixel] = r; |
| 96 row[x * kBytesPerPixel+1] = g; | 96 row[x * kBytesPerPixel+1] = g; |
| 97 row[x * kBytesPerPixel+2] = b; | 97 row[x * kBytesPerPixel+2] = b; |
| 98 row[x * kBytesPerPixel+3] = 0xff; | 98 row[x * kBytesPerPixel+3] = 0xff; |
| 99 } | 99 } |
| 100 row += bytes_per_row_; | 100 row += bytes_per_row_; |
| 101 } | 101 } |
| 102 } | 102 } |
| 103 | 103 |
| 104 } // namespace remoting | 104 } // namespace remoting |
| OLD | NEW |