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

Unified Diff: ui/gfx/display.cc

Issue 15830003: Manual Merge 201756 "Changes how to compute the id of a display." (2nd) (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1500/src/
Patch Set: Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/display.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/display.cc
===================================================================
--- ui/gfx/display.cc (revision 202214)
+++ ui/gfx/display.cc (working copy)
@@ -54,10 +54,10 @@
// static
int64 Display::GetID(uint16 manufacturer_id,
- uint16 product_code,
+ uint32 product_code_hash,
uint8 output_index) {
- int64 new_id = ((static_cast<int64>(manufacturer_id) << 24) |
- (static_cast<int64>(product_code) << 8) | output_index);
+ int64 new_id = ((static_cast<int64>(manufacturer_id) << 40) |
+ (static_cast<int64>(product_code_hash) << 8) | output_index);
DCHECK_NE(kInvalidDisplayID, new_id);
return new_id;
}
« no previous file with comments | « ui/gfx/display.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698