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

Issue 11009011: Use the cpuid instruction to generate the CPU brand string. And (Closed)

Created:
8 years, 2 months ago by chunyang.dai
Modified:
8 years, 2 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, erikwright+watch_chromium.org, jam, apatrick_chromium
Base URL:
https://src.chromium.org/chrome/trunk/src/
Visibility:
Public.

Description

Use the cpuid instruction to generate the CPU brand string. And use this string to check whether the cpu is Intel Atom processor. This change is to make sure the 2D canvas acceleration is enabled on Atom / windows system. BUG=151500 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=160226

Patch Set 1 #

Patch Set 2 : #

Total comments: 9

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Total comments: 1

Patch Set 5 : #

Total comments: 9

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Total comments: 14

Patch Set 9 : #

Total comments: 7

Patch Set 10 : #

Total comments: 1

Patch Set 11 : #

Patch Set 12 : #

Total comments: 1

Patch Set 13 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -18 lines) Patch
M AUTHORS View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M base/cpu.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M base/cpu.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +25 lines, -10 lines 0 comments Download
M content/browser/gpu/gpu_blacklist.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/gpu/gpu_blacklist.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +28 lines, -0 lines 0 comments Download
M content/browser/gpu/software_rendering_list.json View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +17 lines, -8 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Zhenyao Mo
http://codereview.chromium.org/11009011/diff/4002/base/cpu.cc File base/cpu.cc (right): http://codereview.chromium.org/11009011/diff/4002/base/cpu.cc#newcode123 base/cpu.cc:123: //get the brand string of the cpu. one space ...
8 years, 2 months ago (2012-10-01 19:04:33 UTC) #1
Zhenyao Mo
LGTM with two nits http://codereview.chromium.org/11009011/diff/10001/base/cpu.h File base/cpu.h (right): http://codereview.chromium.org/11009011/diff/10001/base/cpu.h#newcode35 base/cpu.h:35: const std::string& cpu_brand() const { ...
8 years, 2 months ago (2012-10-02 22:01:31 UTC) #2
Zhenyao Mo
http://codereview.chromium.org/11009011/diff/14001/base/cpu.h File base/cpu.h (right): http://codereview.chromium.org/11009011/diff/14001/base/cpu.h#newcode36 base/cpu.h:36: nit: you have empty spaces in this empty. see ...
8 years, 2 months ago (2012-10-02 22:32:18 UTC) #3
jar (doing other things)
Drive by comments. I don't know if the bug about null termination is real (I ...
8 years, 2 months ago (2012-10-03 00:33:04 UTC) #4
Mark Mentovai
You picked too many reviewers to spam. You don’t need to name all of the ...
8 years, 2 months ago (2012-10-03 00:33:17 UTC) #5
Mark Mentovai
http://codereview.chromium.org/11009011/diff/26001/AUTHORS File AUTHORS (right): http://codereview.chromium.org/11009011/diff/26001/AUTHORS#newcode174 AUTHORS:174: Dai Chunyang <chunyang.dai@intel.com> End of the file, please. http://codereview.chromium.org/11009011/diff/26001/base/cpu.cc ...
8 years, 2 months ago (2012-10-03 18:34:02 UTC) #6
chunyang.dai
On 2012/10/03 18:34:02, Mark Mentovai wrote: I submit a new patch basing on Mark's comments. ...
8 years, 2 months ago (2012-10-04 13:32:31 UTC) #7
Mark Mentovai
zmo should also re-review the base portion since it’s changed substantially since his review. http://codereview.chromium.org/11009011/diff/27001/base/cpu.cc ...
8 years, 2 months ago (2012-10-04 15:51:28 UTC) #8
Mark Mentovai
LGTM with this change for base OWNERS approval. I only reviewed the portion in base. ...
8 years, 2 months ago (2012-10-04 16:43:53 UTC) #9
Zhenyao Mo
LGTM
8 years, 2 months ago (2012-10-04 16:53:15 UTC) #10
chunyang.dai
I submit the #include <algorithm> sentence accordig to Mark's comments. And thank you all for ...
8 years, 2 months ago (2012-10-04 17:11:23 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/chunyang.dai@intel.com/11009011/32003
8 years, 2 months ago (2012-10-04 17:14:04 UTC) #12
commit-bot: I haz the power
Failed to apply patch for content/browser/gpu/software_rendering_list.json: While running patch -p0 --forward --force --no-backup-if-mismatch; patching file ...
8 years, 2 months ago (2012-10-04 17:14:11 UTC) #13
jar (doing other things)
More drive by... http://codereview.chromium.org/11009011/diff/26001/base/cpu.cc File base/cpu.cc (right): http://codereview.chromium.org/11009011/diff/26001/base/cpu.cc#newcode135 base/cpu.cc:135: cpu_brand_ = cpu_brand; I couldn't find ...
8 years, 2 months ago (2012-10-04 17:42:02 UTC) #14
Mark Mentovai
http://codereview.chromium.org/11009011/diff/26001/base/cpu.cc File base/cpu.cc (right): http://codereview.chromium.org/11009011/diff/26001/base/cpu.cc#newcode135 base/cpu.cc:135: cpu_brand_ = cpu_brand; jar wrote: > I couldn't find ...
8 years, 2 months ago (2012-10-04 18:00:45 UTC) #15
chunyang.dai
In the latest patch, I synchronized the code to resolve one conflict and modified the ...
8 years, 2 months ago (2012-10-04 18:20:47 UTC) #16
Mark Mentovai
http://codereview.chromium.org/11009011/diff/29008/base/cpu.cc File base/cpu.cc (right): http://codereview.chromium.org/11009011/diff/29008/base/cpu.cc#newcode7 base/cpu.cc:7: #include <algorithm> Our style guide says that C++ system ...
8 years, 2 months ago (2012-10-04 18:24:56 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/chunyang.dai@intel.com/11009011/37009
8 years, 2 months ago (2012-10-04 18:52:38 UTC) #18
jar (doing other things)
Mark is really doing this review... so you can act on his L G T ...
8 years, 2 months ago (2012-10-04 19:49:58 UTC) #19
Mark Mentovai
LGTM at patch set 13 for base OWNERS review and approval.
8 years, 2 months ago (2012-10-04 20:01:19 UTC) #20
commit-bot: I haz the power
8 years, 2 months ago (2012-10-04 21:05:25 UTC) #21
Change committed as 160226

Powered by Google App Engine
This is Rietveld 408576698