Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Side by Side Diff: ui/display/types/display_snapshot.cc

Issue 2213273002: ozone: Consolidate primary plane format. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comment on a single line. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/display/types/display_snapshot.h ('k') | ui/ozone/demo/surfaceless_gl_renderer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 ui {
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // We must explicitly clear out the bytes that represent the serial number. 49 // We must explicitly clear out the bytes that represent the serial number.
50 const size_t end = 50 const size_t end =
51 std::min(kSerialNumberBeginingByte + kSerialNumberLengthInBytes, 51 std::min(kSerialNumberBeginingByte + kSerialNumberLengthInBytes,
52 edid_.size()); 52 edid_.size());
53 for (size_t i = kSerialNumberBeginingByte; i < end; ++i) 53 for (size_t i = kSerialNumberBeginingByte; i < end; ++i)
54 edid_[i] = 0; 54 edid_[i] = 0;
55 } 55 }
56 56
57 DisplaySnapshot::~DisplaySnapshot() {} 57 DisplaySnapshot::~DisplaySnapshot() {}
58 58
59 // static
60 gfx::BufferFormat DisplaySnapshot::PrimaryFormat() {
61 return gfx::BufferFormat::BGRX_8888;
62 }
63
59 } // namespace ui 64 } // namespace ui
OLDNEW
« no previous file with comments | « ui/display/types/display_snapshot.h ('k') | ui/ozone/demo/surfaceless_gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698