| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ui/display/types/display_snapshot.h" | 5 #include "ui/display/types/display_snapshot.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 namespace ui { | 9 namespace display { |
| 10 | 10 |
| 11 namespace { | 11 namespace { |
| 12 | 12 |
| 13 // The display serial number beginning byte position and its length in the | 13 // The display serial number beginning byte position and its length in the |
| 14 // EDID number as defined in the spec. | 14 // EDID number as defined in the spec. |
| 15 // https://en.wikipedia.org/wiki/Extended_Display_Identification_Data | 15 // https://en.wikipedia.org/wiki/Extended_Display_Identification_Data |
| 16 const size_t kSerialNumberBeginingByte = 12U; | 16 const size_t kSerialNumberBeginingByte = 12U; |
| 17 const size_t kSerialNumberLengthInBytes = 4U; | 17 const size_t kSerialNumberLengthInBytes = 4U; |
| 18 | 18 |
| 19 } // namespace | 19 } // namespace |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 edid_[i] = 0; | 53 edid_[i] = 0; |
| 54 } | 54 } |
| 55 | 55 |
| 56 DisplaySnapshot::~DisplaySnapshot() {} | 56 DisplaySnapshot::~DisplaySnapshot() {} |
| 57 | 57 |
| 58 // static | 58 // static |
| 59 gfx::BufferFormat DisplaySnapshot::PrimaryFormat() { | 59 gfx::BufferFormat DisplaySnapshot::PrimaryFormat() { |
| 60 return gfx::BufferFormat::BGRX_8888; | 60 return gfx::BufferFormat::BGRX_8888; |
| 61 } | 61 } |
| 62 | 62 |
| 63 } // namespace ui | 63 } // namespace display |
| OLD | NEW |