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

Issue 10399118: 2x Cursor support. (Closed)

Created:
8 years, 7 months ago by oshima
Modified:
8 years, 7 months ago
Reviewers:
sky, varunjain
CC:
chromium-reviews, sadrul, ben+watch_chromium.org, varunjain
Visibility:
Public.

Description

2x Cursor support. BUG=110394 TEST=manual Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=138354

Patch Set 1 #

Patch Set 2 : win fix #

Patch Set 3 : . #

Total comments: 2

Patch Set 4 : remoev extra space #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -17 lines) Patch
M chrome/chrome_resources.gyp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/root_window.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/aura/root_window.cc View 1 1 chunk +12 lines, -0 lines 0 comments Download
M ui/aura/root_window_host.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/aura/root_window_host_linux.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/root_window_host_linux.cc View 1 2 3 6 chunks +67 lines, -15 lines 6 comments Download
M ui/aura/root_window_host_win.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/root_window_host_win.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M ui/aura/window.h View 2 chunks +3 lines, -1 line 0 comments Download
M ui/base/resource/resource_bundle_aurax11.cc View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
oshima
8 years, 7 months ago (2012-05-22 19:38:20 UTC) #1
sky
LGTM http://codereview.chromium.org/10399118/diff/7012/ui/aura/root_window_host_linux.cc File ui/aura/root_window_host_linux.cc (right): http://codereview.chromium.org/10399118/diff/7012/ui/aura/root_window_host_linux.cc#newcode362 ui/aura/root_window_host_linux.cc:362: const SkBitmap& bitmap = image->GetBitmapForScale(scale_factor_, nit: you have ...
8 years, 7 months ago (2012-05-22 19:49:12 UTC) #2
oshima
http://codereview.chromium.org/10399118/diff/7012/ui/aura/root_window_host_linux.cc File ui/aura/root_window_host_linux.cc (right): http://codereview.chromium.org/10399118/diff/7012/ui/aura/root_window_host_linux.cc#newcode362 ui/aura/root_window_host_linux.cc:362: const SkBitmap& bitmap = image->GetBitmapForScale(scale_factor_, On 2012/05/22 19:49:12, sky ...
8 years, 7 months ago (2012-05-22 19:53:08 UTC) #3
oshima
8 years, 7 months ago (2012-05-22 19:53:55 UTC) #4
varunjain
http://codereview.chromium.org/10399118/diff/14001/ui/aura/root_window_host_linux.cc File ui/aura/root_window_host_linux.cc (right): http://codereview.chromium.org/10399118/diff/14001/ui/aura/root_window_host_linux.cc#newcode310 ui/aura/root_window_host_linux.cc:310: LoadImageCursor(ui::kCursorNull, IDR_AURA_CURSOR_PTR, 9, 5); when I was trying to ...
8 years, 7 months ago (2012-05-22 20:12:01 UTC) #5
oshima
http://codereview.chromium.org/10399118/diff/14001/ui/aura/root_window_host_linux.cc File ui/aura/root_window_host_linux.cc (right): http://codereview.chromium.org/10399118/diff/14001/ui/aura/root_window_host_linux.cc#newcode310 ui/aura/root_window_host_linux.cc:310: LoadImageCursor(ui::kCursorNull, IDR_AURA_CURSOR_PTR, 9, 5); On 2012/05/22 20:12:01, varunjain wrote: ...
8 years, 7 months ago (2012-05-22 20:23:05 UTC) #6
varunjain
http://codereview.chromium.org/10399118/diff/14001/ui/aura/root_window_host_linux.cc File ui/aura/root_window_host_linux.cc (right): http://codereview.chromium.org/10399118/diff/14001/ui/aura/root_window_host_linux.cc#newcode310 ui/aura/root_window_host_linux.cc:310: LoadImageCursor(ui::kCursorNull, IDR_AURA_CURSOR_PTR, 9, 5); On 2012/05/22 20:23:05, oshima wrote: ...
8 years, 7 months ago (2012-05-22 20:32:20 UTC) #7
oshima
http://codereview.chromium.org/10399118/diff/14001/ui/aura/root_window_host_linux.cc File ui/aura/root_window_host_linux.cc (right): http://codereview.chromium.org/10399118/diff/14001/ui/aura/root_window_host_linux.cc#newcode310 ui/aura/root_window_host_linux.cc:310: LoadImageCursor(ui::kCursorNull, IDR_AURA_CURSOR_PTR, 9, 5); On 2012/05/22 20:32:21, varunjain wrote: ...
8 years, 7 months ago (2012-05-22 20:46:06 UTC) #8
pkotwicz
Oshima, can you please wait till the end of the day till I land another ...
8 years, 7 months ago (2012-05-23 15:07:00 UTC) #9
oshima
On 2012/05/23 15:07:00, pkotwicz wrote: > Oshima, can you please wait till the end of ...
8 years, 7 months ago (2012-05-23 15:14:28 UTC) #10
flackr
On 2012/05/23 15:14:28, oshima wrote: > On 2012/05/23 15:07:00, pkotwicz wrote: > > Oshima, can ...
8 years, 7 months ago (2012-05-23 15:49:04 UTC) #11
oshima
8 years, 7 months ago (2012-05-23 16:13:04 UTC) #12
On Wed, May 23, 2012 at 8:49 AM, <flackr@chromium.org> wrote:

> On 2012/05/23 15:14:28, oshima wrote:
>
>> On 2012/05/23 15:07:00, pkotwicz wrote:
>> > Oshima, can you please wait till the end of the day till I land another
>>
> patch
>
>> to
>> > land this? Adding the 2x resource pack right now will trigger a dcheck
>>
> because
>
>> > not all of the 2x resources in the data pack are actually 2x
>>
>
>  Which DCHECK it will trigger?
>> It will take a while until we have all 2x assets, so we need to disable it
>> if such DCHECK exists.
>>
>
> The DCHECK on src/ui/gfx/image/image_skia.**cc:99 would fail except that
> resource_bundle.cc currently ignores the passed in scale factor when
> creating
> the DataPack. My CL
https://chromiumcodereview.**appspot.com/10412004/<https://chromiumcodereview...
fix
> this but I can't land it right now because of the DCHECK.
>
>
This DCHECK is wrong. 2x resources contains resources for UI for 2x
density, but
it doesn't necessarily means the size of it is 2x of dip. It is possible
for HDA code
to use non 2x sized image. This is true only for HDC code.

- oshima


>
http://codereview.chromium.**org/10399118/<http://codereview.chromium.org/103...
>

Powered by Google App Engine
This is Rietveld 408576698