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

Issue 2877483003: Implements core logic for Pixel Canvas (Closed)

Created:
3 years, 7 months ago by malaykeshav
Modified:
3 years, 4 months ago
CC:
cc-bugs_chromium.org, chromium-reviews, danakj+watch_chromium.org, dcheng, jbauman+watch_chromium.org, kalyank, piman+watch_chromium.org, sadrul, tfarina, Ian Vollick
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Implements core logic for Pixel Canvas This patch implements the core logic for Pixel Canvas while hiding it behind a compositor switch (Disabled by default). Pixel Canvas enables all canvas draw commands to be recorded at pixel size, helping eliminate a majority of fractional device scale factor bugs. This also allows devices to work at all non discrete fractional scales with reduced(or no) overhead. Subsequent changes will fix bugs that happen when this mode is enabled. This is to avoid one massive CL. DesignDoc=go/pixel-canvas Slides=go/pixel-canvas-slide BUG=720596 COMPONENT=Canvas, View, Layer, Paint Context, Paint Recorder CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2877483003 Cr-Commit-Position: refs/heads/master@{#491587} Committed: https://chromium.googlesource.com/chromium/src/+/55c9f6d21086e418dac45a58e5f51a3a5ef7bc1e

Patch Set 1 #

Patch Set 2 : Update unit tests #

Patch Set 3 : mend #

Patch Set 4 : nit #

Patch Set 5 : More nits #

Patch Set 6 : Sync #

Patch Set 7 : Sync with ToT #

Patch Set 8 : Update unittests for RasterSource #

Total comments: 23

Patch Set 9 : Sync with ToT #

Total comments: 6

Patch Set 10 : Resolving Comments #

Patch Set 11 : nits #

Total comments: 2

Patch Set 12 : Update clip logic to use child context scale #

Patch Set 13 : Updated GetContextScaleType() from public to protected #

Total comments: 8

Patch Set 14 : Resolving comments and sync with ToT #

Patch Set 15 : nit #

Total comments: 14

Patch Set 16 : Plumbed recording scale factor to CC side #

Patch Set 17 : Clean up PaintContext and rename scale to recording scale #

Total comments: 1

Patch Set 18 : Adds RasterSource Unittest #

Total comments: 3

Patch Set 19 : Merged PaintContext Offset into paint_recording_bounds_ #

Total comments: 10

Patch Set 20 : Resolving comments and Sync with ToT #

Total comments: 4

Patch Set 21 : Resolving comments #

Total comments: 9

Patch Set 22 : Implements Paint Info to encapsulate PaintContext #

Patch Set 23 : Implements ViewPaintContext that encapsulates CompositorPaintContext. Also adds unittest #

Total comments: 1

Patch Set 24 : Update tests #

Total comments: 16

Patch Set 25 : Updated view's PaintInfo and resolving comments and updating tests #

Patch Set 26 : Sync with ToT #

Patch Set 27 : Unittest update #

Total comments: 21

Patch Set 28 : Resolving comments and sync with ToT #

Total comments: 6

Patch Set 29 : Resolving comments #

Total comments: 53

Patch Set 30 : Resolving comments and Sync with ToT #

Patch Set 31 : Fix applist_unittest and sync with ToT #

Total comments: 20

Patch Set 32 : Adding copy constructor and clone factory function #

Patch Set 33 : Sync With ToT #

Total comments: 2

Patch Set 34 : Added comment to give context on when to override GetPaintScaleType() #

Patch Set 35 : Added comment to give context on when to override GetPaintScaleType() #

Patch Set 36 : Sync with ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1059 lines, -213 lines) Patch
M ash/system/tray/tray_details_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +6 lines, -4 lines 0 comments Download
M ash/wm/drag_window_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2 chunks +4 lines, -1 line 0 comments Download
M cc/layers/picture_layer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +3 lines, -0 lines 0 comments Download
M cc/layers/recording_source.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +3 lines, -0 lines 0 comments Download
M cc/layers/recording_source.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +6 lines, -1 line 0 comments Download
M cc/raster/raster_source.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 1 chunk +1 line, -0 lines 0 comments Download
M cc/raster/raster_source.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 3 chunks +5 lines, -2 lines 0 comments Download
M cc/raster/raster_source_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 1 chunk +83 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 3 chunks +5 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/autofill/card_unmask_prompt_views.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/top_container_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/frame/top_container_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 6 chunks +19 lines, -19 lines 0 comments Download
M components/web_contents_delegate_android/validation_message_bubble_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +3 lines, -8 lines 0 comments Download
M content/browser/compositor/reflector_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/compositor/software_browser_compositor_output_surface_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/compositor/software_output_device_ozone_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/browser_compositor_view_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 chunk +2 lines, -1 line 0 comments Download
M ui/aura/window_tree_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 2 chunks +3 lines, -1 line 0 comments Download
M ui/compositor/canvas_painter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +2 lines, -1 line 0 comments Download
M ui/compositor/canvas_painter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +6 lines, -2 lines 0 comments Download
M ui/compositor/compositor.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 3 chunks +6 lines, -0 lines 0 comments Download
M ui/compositor/compositor.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 3 chunks +4 lines, -0 lines 0 comments Download
M ui/compositor/compositor_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2 chunks +3 lines, -0 lines 0 comments Download
M ui/compositor/compositor_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 2 chunks +12 lines, -0 lines 0 comments Download
M ui/compositor/compositor_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +2 lines, -1 line 0 comments Download
M ui/compositor/layer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 chunk +5 lines, -0 lines 0 comments Download
M ui/compositor/layer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 4 chunks +9 lines, -4 lines 0 comments Download
M ui/compositor/layer_owner_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +2 lines, -1 line 0 comments Download
M ui/compositor/paint_context.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 3 chunks +11 lines, -1 line 0 comments Download
M ui/compositor/paint_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 3 chunks +10 lines, -4 lines 0 comments Download
M ui/compositor/paint_recorder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 chunk +2 lines, -0 lines 0 comments Download
M ui/compositor/paint_recorder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 2 chunks +20 lines, -3 lines 0 comments Download
M ui/compositor/test/test_compositor_host_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +2 lines, -1 line 0 comments Download
M ui/compositor/test/test_compositor_host_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +2 lines, -1 line 0 comments Download
M ui/compositor/test/test_compositor_host_ozone.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +2 lines, -1 line 0 comments Download
M ui/compositor/test/test_compositor_host_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +2 lines, -1 line 0 comments Download
M ui/compositor/test/test_compositor_host_x11.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +2 lines, -1 line 0 comments Download
M ui/gfx/geometry/rect.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 chunk +35 lines, -0 lines 0 comments Download
M ui/message_center/views/message_list_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +1 line, -1 line 0 comments Download
M ui/message_center/views/message_list_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 3 chunks +3 lines, -0 lines 0 comments Download
M ui/views/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/bubble/bubble_frame_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +1 line, -1 line 0 comments Download
M ui/views/bubble/bubble_frame_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 3 chunks +8 lines, -4 lines 0 comments Download
M ui/views/button_drag_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 2 chunks +6 lines, -1 line 0 comments Download
M ui/views/cocoa/bridged_native_widget.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +2 lines, -1 line 0 comments Download
M ui/views/controls/label_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 1 chunk +4 lines, -1 line 0 comments Download
M ui/views/controls/menu/submenu_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/menu/submenu_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2 chunks +3 lines, -3 lines 0 comments Download
M ui/views/controls/textfield/textfield.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 1 chunk +5 lines, -2 lines 0 comments Download
A ui/views/paint_info.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 chunk +119 lines, -0 lines 0 comments Download
A ui/views/paint_info.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 1 chunk +127 lines, -0 lines 0 comments Download
A ui/views/paint_info_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 1 chunk +246 lines, -0 lines 0 comments Download
M ui/views/view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 7 chunks +22 lines, -8 lines 0 comments Download
M ui/views/view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 7 chunks +87 lines, -44 lines 0 comments Download
M ui/views/view_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 39 chunks +95 lines, -53 lines 0 comments Download

Messages

Total messages: 299 (232 generated)
malaykeshav
PTAL
3 years, 7 months ago (2017-05-11 18:08:50 UTC) #25
malaykeshav
On 2017/05/11 at 18:08:50, malaykeshav wrote: > PTAL Ping
3 years, 7 months ago (2017-05-12 09:14:31 UTC) #30
oshima
https://codereview.chromium.org/2877483003/diff/220001/cc/paint/display_item_list.h File cc/paint/display_item_list.h (right): https://codereview.chromium.org/2877483003/diff/220001/cc/paint/display_item_list.h#newcode177 cc/paint/display_item_list.h:177: // the corner points. Use compositor switch --enable-pixel-canvas-recording to ...
3 years, 6 months ago (2017-06-15 22:59:13 UTC) #47
oshima
https://codereview.chromium.org/2877483003/diff/240001/ui/views/bubble/bubble_frame_view.cc File ui/views/bubble/bubble_frame_view.cc (right): https://codereview.chromium.org/2877483003/diff/240001/ui/views/bubble/bubble_frame_view.cc#newcode387 ui/views/bubble/bubble_frame_view.cc:387: ui::PaintRecorder recorder(context, context.ScaleToEffectivePixelSize(size()), shouldn't this be context.pixel_size()? and if ...
3 years, 6 months ago (2017-06-16 00:15:03 UTC) #48
malaykeshav
PTAL https://codereview.chromium.org/2877483003/diff/220001/cc/paint/display_item_list.h File cc/paint/display_item_list.h (right): https://codereview.chromium.org/2877483003/diff/220001/cc/paint/display_item_list.h#newcode177 cc/paint/display_item_list.h:177: // the corner points. Use compositor switch --enable-pixel-canvas-recording ...
3 years, 6 months ago (2017-06-16 20:41:58 UTC) #58
oshima
https://codereview.chromium.org/2877483003/diff/220001/ui/gfx/canvas.h File ui/gfx/canvas.h (right): https://codereview.chromium.org/2877483003/diff/220001/ui/gfx/canvas.h#newcode194 ui/gfx/canvas.h:194: void Scale(float x_scale, float y_scale); On 2017/06/16 20:41:58, malaykeshav ...
3 years, 6 months ago (2017-06-17 00:55:48 UTC) #61
malaykeshav
On 2017/06/17 at 00:55:48, oshima wrote: > https://codereview.chromium.org/2877483003/diff/220001/ui/gfx/canvas.h > File ui/gfx/canvas.h (right): > > https://codereview.chromium.org/2877483003/diff/220001/ui/gfx/canvas.h#newcode194 ...
3 years, 6 months ago (2017-06-17 01:45:27 UTC) #64
oshima
https://codereview.chromium.org/2877483003/diff/300001/ui/views/view.h File ui/views/view.h (right): https://codereview.chromium.org/2877483003/diff/300001/ui/views/view.h#newcode1051 ui/views/view.h:1051: virtual int GetContextScaleType() const; can you make this protected?
3 years, 6 months ago (2017-06-17 16:05:53 UTC) #69
malaykeshav
On 2017/06/17 at 16:05:53, oshima wrote: > https://codereview.chromium.org/2877483003/diff/300001/ui/views/view.h > File ui/views/view.h (right): > > https://codereview.chromium.org/2877483003/diff/300001/ui/views/view.h#newcode1051 ...
3 years, 6 months ago (2017-06-20 18:03:22 UTC) #70
oshima
https://codereview.chromium.org/2877483003/diff/360001/ui/compositor/paint_recorder.h File ui/compositor/paint_recorder.h (right): https://codereview.chromium.org/2877483003/diff/360001/ui/compositor/paint_recorder.h#newcode32 ui/compositor/paint_recorder.h:32: // |recording_size| should be in pixels if pixel canvas ...
3 years, 6 months ago (2017-06-22 15:24:12 UTC) #78
malaykeshav
PTAL https://codereview.chromium.org/2877483003/diff/360001/ui/compositor/paint_recorder.h File ui/compositor/paint_recorder.h (right): https://codereview.chromium.org/2877483003/diff/360001/ui/compositor/paint_recorder.h#newcode32 ui/compositor/paint_recorder.h:32: // |recording_size| should be in pixels if pixel ...
3 years, 6 months ago (2017-06-22 21:02:53 UTC) #88
oshima
It's better to avoid exposing "pixelxx" outside of ui/compositor. Can you try to hide pixel_bounds ...
3 years, 6 months ago (2017-06-23 18:42:32 UTC) #90
oshima
by the way, we should get feedback from owners by now. (sky@ and danakj@)
3 years, 6 months ago (2017-06-23 18:49:36 UTC) #91
malaykeshav
https://codereview.chromium.org/2877483003/diff/360001/ui/views/view.cc File ui/views/view.cc (right): https://codereview.chromium.org/2877483003/diff/360001/ui/views/view.cc#newcode904 ui/views/view.cc:904: ui::PaintRecorder recorder(context, context.pixel_size(), &paint_cache_); On 2017/06/23 at 18:42:32, oshima ...
3 years, 6 months ago (2017-06-23 18:53:21 UTC) #92
malaykeshav
+sky and +danakj PTAL
3 years, 6 months ago (2017-06-23 18:54:08 UTC) #94
sky
I don't see any new assertions in views_unittests. Can you please add test coverage? Also, ...
3 years, 6 months ago (2017-06-23 23:40:24 UTC) #97
malaykeshav
I couldn't come up with a reasonable new unittest for views. Majority of the changes ...
3 years, 6 months ago (2017-06-24 00:30:03 UTC) #98
malaykeshav
> This does not make any changes to the view transform so event propagation should ...
3 years, 6 months ago (2017-06-24 00:49:36 UTC) #99
malaykeshav
> Does event delivery need to be updated? It should not be a big issue ...
3 years, 6 months ago (2017-06-24 01:02:36 UTC) #100
sky
Do any changes need to be done to code that draws at 1x by resetting ...
3 years, 5 months ago (2017-06-26 15:40:38 UTC) #101
malaykeshav
On 2017/06/26 at 15:40:38, sky wrote: > Do any changes need to be done to ...
3 years, 5 months ago (2017-06-26 16:53:41 UTC) #102
sky
Yes. On Mon, Jun 26, 2017 at 9:53 AM, <malaykeshav@chromium.org> wrote: > On 2017/06/26 at ...
3 years, 5 months ago (2017-06-26 20:50:46 UTC) #103
malaykeshav
On 2017/06/26 at 20:50:46, sky wrote: > Yes. > > On Mon, Jun 26, 2017 ...
3 years, 5 months ago (2017-06-26 21:01:15 UTC) #104
sky
I would prefer not to introduce another paint function. I think that's just going to ...
3 years, 5 months ago (2017-06-26 22:15:03 UTC) #105
malaykeshav
On 2017/06/26 at 22:15:03, sky wrote: > I would prefer not to introduce another paint ...
3 years, 5 months ago (2017-06-26 23:12:02 UTC) #106
sky
The problem is it's not going to stop there. You'll quickly find you need to ...
3 years, 5 months ago (2017-06-27 03:25:16 UTC) #107
danakj
I think overall I'm concerned about the approach wrt code layering. How a view wants ...
3 years, 5 months ago (2017-06-27 16:28:36 UTC) #108
malaykeshav
+vmpstr
3 years, 5 months ago (2017-06-29 01:03:33 UTC) #110
vmpstr
https://codereview.chromium.org/2877483003/diff/620001/cc/raster/raster_source.cc File cc/raster/raster_source.cc (right): https://codereview.chromium.org/2877483003/diff/620001/cc/raster/raster_source.cc#newcode249 cc/raster/raster_source.cc:249: gfx::ScaleToCornerScaledRect(layer_rect, recording_scale_factor_); Could you add a couple of tests ...
3 years, 5 months ago (2017-07-07 22:56:42 UTC) #122
malaykeshav
@danakj @vmpstr PTAL https://codereview.chromium.org/2877483003/diff/480001/cc/raster/raster_source.cc File cc/raster/raster_source.cc (right): https://codereview.chromium.org/2877483003/diff/480001/cc/raster/raster_source.cc#newcode83 cc/raster/raster_source.cc:83: if (!display_list_->pixel_canvas_enabled()) On 2017/06/27 at 16:28:36, ...
3 years, 5 months ago (2017-07-07 22:57:10 UTC) #123
malaykeshav
On 2017/07/07 at 22:56:42, vmpstr wrote: > https://codereview.chromium.org/2877483003/diff/620001/cc/raster/raster_source.cc > File cc/raster/raster_source.cc (right): > > https://codereview.chromium.org/2877483003/diff/620001/cc/raster/raster_source.cc#newcode249 ...
3 years, 5 months ago (2017-07-08 00:14:35 UTC) #124
vmpstr
cc lgtm https://codereview.chromium.org/2877483003/diff/640001/cc/trees/layer_tree_host.cc File cc/trees/layer_tree_host.cc (right): https://codereview.chromium.org/2877483003/diff/640001/cc/trees/layer_tree_host.cc#newcode1091 cc/trees/layer_tree_host.cc:1091: recording_scale_factor_ = recording_scale_factor; nit: I think we ...
3 years, 5 months ago (2017-07-10 16:20:34 UTC) #125
malaykeshav
https://codereview.chromium.org/2877483003/diff/640001/cc/trees/layer_tree_host.cc File cc/trees/layer_tree_host.cc (right): https://codereview.chromium.org/2877483003/diff/640001/cc/trees/layer_tree_host.cc#newcode1091 cc/trees/layer_tree_host.cc:1091: recording_scale_factor_ = recording_scale_factor; On 2017/07/10 at 16:20:34, vmpstr wrote: ...
3 years, 5 months ago (2017-07-10 18:03:53 UTC) #126
vmpstr
https://codereview.chromium.org/2877483003/diff/640001/cc/trees/layer_tree_host.cc File cc/trees/layer_tree_host.cc (right): https://codereview.chromium.org/2877483003/diff/640001/cc/trees/layer_tree_host.cc#newcode1091 cc/trees/layer_tree_host.cc:1091: recording_scale_factor_ = recording_scale_factor; On 2017/07/10 18:03:53, malaykeshav wrote: > ...
3 years, 5 months ago (2017-07-10 18:06:26 UTC) #127
vmpstr
I looked at some UI stuff as well. I'm by no means an expert there, ...
3 years, 5 months ago (2017-07-11 17:37:22 UTC) #145
malaykeshav
PTAL https://codereview.chromium.org/2877483003/diff/720001/ui/compositor/compositor_switches.cc File ui/compositor/compositor_switches.cc (right): https://codereview.chromium.org/2877483003/diff/720001/ui/compositor/compositor_switches.cc#newcode33 ui/compositor/compositor_switches.cc:33: // to be done via corner points. See ...
3 years, 5 months ago (2017-07-12 00:55:37 UTC) #161
vmpstr
lgtm with comments https://codereview.chromium.org/2877483003/diff/800001/ui/compositor/paint_context.cc File ui/compositor/paint_context.cc (right): https://codereview.chromium.org/2877483003/diff/800001/ui/compositor/paint_context.cc#newcode72 ui/compositor/paint_context.cc:72: if (!IsPixelCanvas()) { Can you leave ...
3 years, 5 months ago (2017-07-12 17:48:19 UTC) #164
malaykeshav
+piman for OWNERS on ui/compositor/ changes. Dana is on leave this week. Trying to get ...
3 years, 5 months ago (2017-07-12 18:08:26 UTC) #168
malaykeshav
On 2017/07/12 at 18:08:26, malaykeshav wrote: > +piman for OWNERS on ui/compositor/ changes. > Dana ...
3 years, 5 months ago (2017-07-13 20:01:38 UTC) #171
danakj
Sorry, I'll have a look at ui/ tomorrow. Pinging myself to remember.
3 years, 5 months ago (2017-07-18 22:13:35 UTC) #172
danakj
https://codereview.chromium.org/2877483003/diff/820001/ui/compositor/compositor_switches.cc File ui/compositor/compositor_switches.cc (right): https://codereview.chromium.org/2877483003/diff/820001/ui/compositor/compositor_switches.cc#newcode35 ui/compositor/compositor_switches.cc:35: // If enabled, all draw commnads recorded on canvas ...
3 years, 5 months ago (2017-07-19 17:00:59 UTC) #173
malaykeshav
https://codereview.chromium.org/2877483003/diff/820001/ui/compositor/compositor_switches.cc File ui/compositor/compositor_switches.cc (right): https://codereview.chromium.org/2877483003/diff/820001/ui/compositor/compositor_switches.cc#newcode35 ui/compositor/compositor_switches.cc:35: // If enabled, all draw commnads recorded on canvas ...
3 years, 5 months ago (2017-07-21 00:12:34 UTC) #174
danakj
Thanks, this looks better to me. We should avoid globals such as the one being ...
3 years, 5 months ago (2017-07-21 17:29:39 UTC) #175
malaykeshav
@sky @dana PTAL https://codereview.chromium.org/2877483003/diff/880001/ui/compositor/canvas_painter.cc File ui/compositor/canvas_painter.cc (right): https://codereview.chromium.org/2877483003/diff/880001/ui/compositor/canvas_painter.cc#newcode25 ui/compositor/canvas_painter.cc:25: IsPixelCanvasRecordingEnabled() ? raster_scale : 1.f)) {} ...
3 years, 5 months ago (2017-07-21 23:30:17 UTC) #184
malaykeshav
On 2017/07/21 at 23:30:17, malaykeshav wrote: > @sky @dana > PTAL > > https://codereview.chromium.org/2877483003/diff/880001/ui/compositor/canvas_painter.cc > ...
3 years, 5 months ago (2017-07-25 17:42:41 UTC) #196
danakj
The ui/compositor changes mostly LG. I'm still extremely skeptical that you want to round, and ...
3 years, 5 months ago (2017-07-25 17:58:57 UTC) #197
malaykeshav
> I'm still extremely skeptical that you want to round, and suggest that you think ...
3 years, 5 months ago (2017-07-25 22:55:10 UTC) #215
malaykeshav
PTAL https://codereview.chromium.org/2877483003/diff/880001/ui/compositor/paint_info.cc File ui/compositor/paint_info.cc (right): https://codereview.chromium.org/2877483003/diff/880001/ui/compositor/paint_info.cc#newcode16 ui/compositor/paint_info.cc:16: gfx::ScaleToRoundedRect(gfx::Rect(size), paint_recording_scale_x_)), > Not finding bugs easily isn't ...
3 years, 5 months ago (2017-07-25 22:57:58 UTC) #216
danakj
On 2017/07/25 22:55:10, malaykeshav wrote: > > I'm still extremely skeptical that you want to ...
3 years, 4 months ago (2017-07-26 16:06:04 UTC) #219
malaykeshav
Resolving comments. +sky PTAL https://codereview.chromium.org/2877483003/diff/1080001/ui/compositor/compositor_switches.cc File ui/compositor/compositor_switches.cc (right): https://codereview.chromium.org/2877483003/diff/1080001/ui/compositor/compositor_switches.cc#newcode51 ui/compositor/compositor_switches.cc:51: static const bool kIsPixelCanvasRecordingEnabled = ...
3 years, 4 months ago (2017-07-26 18:34:46 UTC) #221
sky
https://codereview.chromium.org/2877483003/diff/1120001/ui/compositor/canvas_painter.h File ui/compositor/canvas_painter.h (right): https://codereview.chromium.org/2877483003/diff/1120001/ui/compositor/canvas_painter.h#newcode33 ui/compositor/canvas_painter.h:33: bool is_pixel_canvas); Document what is_pixel_canvas means. Also, I'm wondering ...
3 years, 4 months ago (2017-07-26 22:12:12 UTC) #225
sky
https://codereview.chromium.org/2877483003/diff/1120001/ui/compositor/canvas_painter.h File ui/compositor/canvas_painter.h (right): https://codereview.chromium.org/2877483003/diff/1120001/ui/compositor/canvas_painter.h#newcode33 ui/compositor/canvas_painter.h:33: bool is_pixel_canvas); On 2017/07/26 22:12:11, sky wrote: > Document ...
3 years, 4 months ago (2017-07-26 23:16:41 UTC) #226
malaykeshav
@sky PTAL https://codereview.chromium.org/2877483003/diff/1120001/ui/compositor/canvas_painter.h File ui/compositor/canvas_painter.h (right): https://codereview.chromium.org/2877483003/diff/1120001/ui/compositor/canvas_painter.h#newcode33 ui/compositor/canvas_painter.h:33: bool is_pixel_canvas); On 2017/07/26 at 22:12:11, sky ...
3 years, 4 months ago (2017-07-28 01:24:38 UTC) #238
sky
https://codereview.chromium.org/2877483003/diff/1120001/ui/compositor/canvas_painter.h File ui/compositor/canvas_painter.h (right): https://codereview.chromium.org/2877483003/diff/1120001/ui/compositor/canvas_painter.h#newcode33 ui/compositor/canvas_painter.h:33: bool is_pixel_canvas); On 2017/07/28 01:24:37, malaykeshav wrote: > On ...
3 years, 4 months ago (2017-07-28 16:02:13 UTC) #244
malaykeshav
@sky PTAL https://codereview.chromium.org/2877483003/diff/1200001/ui/gfx/geometry/rect.h File ui/gfx/geometry/rect.h (right): https://codereview.chromium.org/2877483003/diff/1200001/ui/gfx/geometry/rect.h#newcode347 ui/gfx/geometry/rect.h:347: // All rectangles (or any point) within ...
3 years, 4 months ago (2017-07-31 18:54:30 UTC) #260
sky
https://codereview.chromium.org/2877483003/diff/1200001/ui/gfx/geometry/rect.h File ui/gfx/geometry/rect.h (right): https://codereview.chromium.org/2877483003/diff/1200001/ui/gfx/geometry/rect.h#newcode347 ui/gfx/geometry/rect.h:347: // All rectangles (or any point) within the same ...
3 years, 4 months ago (2017-08-01 15:10:25 UTC) #269
malaykeshav
@sky PTAL https://codereview.chromium.org/2877483003/diff/1200001/ui/views/paint_info.cc File ui/views/paint_info.cc (right): https://codereview.chromium.org/2877483003/diff/1200001/ui/views/paint_info.cc#newcode23 ui/views/paint_info.cc:23: PaintInfo::PaintInfo(const ui::PaintContext& root_context, On 2017/08/01 at 15:10:24, ...
3 years, 4 months ago (2017-08-01 19:31:02 UTC) #272
sky
LGTM
3 years, 4 months ago (2017-08-01 23:23:10 UTC) #273
malaykeshav
Adding: +boliu for OWNERS approval on components/web_contents_delegate_android/ - Moving function from anonymous namepsace to avoid ...
3 years, 4 months ago (2017-08-02 01:36:00 UTC) #277
boliu
components/web_contents_delegate_android lgtm
3 years, 4 months ago (2017-08-02 01:49:44 UTC) #278
jbauman
On 2017/08/02 01:36:00, malaykeshav wrote: > Adding: > > +boliu for OWNERS approval on components/web_contents_delegate_android/ ...
3 years, 4 months ago (2017-08-02 01:53:36 UTC) #279
malaykeshav
+ccameron for OWNERS approval on content/browser/renderer_host/browser/compositor_view_mac - Update call to constructor for ui::Compositor()
3 years, 4 months ago (2017-08-02 02:53:18 UTC) #283
malaykeshav
+ccameron for OWNERS approval on content/browser/renderer_host/browser/compositor_view_mac - Update call to constructor for ui::Compositor()
3 years, 4 months ago (2017-08-02 02:53:18 UTC) #284
malaykeshav
+ccameron for OWNERS approval on content/browser/renderer_host/browser/compositor_view_mac - Update call to constructor for ui::Compositor()
3 years, 4 months ago (2017-08-02 02:53:19 UTC) #285
ccameron
On 2017/08/02 02:53:19, malaykeshav wrote: > +ccameron for OWNERS approval on > content/browser/renderer_host/browser/compositor_view_mac > - ...
3 years, 4 months ago (2017-08-02 19:48:02 UTC) #286
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2877483003/1340001
3 years, 4 months ago (2017-08-03 00:52:06 UTC) #295
commit-bot: I haz the power
3 years, 4 months ago (2017-08-03 01:06:32 UTC) #299
Message was sent while issue was closed.
Committed patchset #36 (id:1340001) as
https://chromium.googlesource.com/chromium/src/+/55c9f6d21086e418dac45a58e5f5...

Powered by Google App Engine
This is Rietveld 408576698