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

Issue 1530923002: Replace Pass() with std::move in ui/gl and ui/gfx (Closed)

Created:
5 years ago by mkollaro
Modified:
5 years ago
Reviewers:
Avi (use Gerrit), Nico
CC:
chromium-reviews, kalyank, ozone-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace Pass() with std::move in ui/gl and ui/gfx Remove it completely when copy ellision can take care of it. BUG=557422 Committed: https://crrev.com/66bdb2b67a8642ec923485f899f1658b27b0cc05 Cr-Commit-Position: refs/heads/master@{#365785}

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -12 lines) Patch
M ui/gfx/win/direct_manipulation.cc View 1 chunk +1 line, -1 line 1 comment Download
M ui/gl/gl_image_memory.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ui/gl/gl_image_shared_memory.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/gl/gl_surface_ozone.cc View 6 chunks +7 lines, -7 lines 0 comments Download
M ui/gl/gl_surface_win.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (4 generated)
mkollaro
5 years ago (2015-12-16 14:56:25 UTC) #2
Avi (use Gerrit)
lgtm stampity stamp
5 years ago (2015-12-16 15:06:02 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1530923002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1530923002/1
5 years ago (2015-12-17 08:29:22 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years ago (2015-12-17 08:35:55 UTC) #6
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/66bdb2b67a8642ec923485f899f1658b27b0cc05 Cr-Commit-Position: refs/heads/master@{#365785}
5 years ago (2015-12-17 08:37:52 UTC) #8
Nico
https://codereview.chromium.org/1530923002/diff/1/ui/gfx/win/direct_manipulation.cc File ui/gfx/win/direct_manipulation.cc (right): https://codereview.chromium.org/1530923002/diff/1/ui/gfx/win/direct_manipulation.cc#newcode21 ui/gfx/win/direct_manipulation.cc:21: return std::move(instance); You forgot to remove it here. clang/win ...
5 years ago (2015-12-17 11:57:54 UTC) #10
mkollaro
On 2015/12/17 11:57:54, Nico wrote: > https://codereview.chromium.org/1530923002/diff/1/ui/gfx/win/direct_manipulation.cc > File ui/gfx/win/direct_manipulation.cc (right): > > https://codereview.chromium.org/1530923002/diff/1/ui/gfx/win/direct_manipulation.cc#newcode21 > ...
5 years ago (2015-12-22 15:32:21 UTC) #11
Nico
5 years ago (2015-12-22 15:34:23 UTC) #12
Message was sent while issue was closed.
On 2015/12/22 15:32:21, mkollaro wrote:
> On 2015/12/17 11:57:54, Nico wrote:
> >
>
https://codereview.chromium.org/1530923002/diff/1/ui/gfx/win/direct_manipulat...
> > File ui/gfx/win/direct_manipulation.cc (right):
> > 
> >
>
https://codereview.chromium.org/1530923002/diff/1/ui/gfx/win/direct_manipulat...
> > ui/gfx/win/direct_manipulation.cc:21: return std::move(instance);
> > You forgot to remove it here. clang/win complains:
> > 
> > ..\..\ui\gfx\win\direct_manipulation.cc(21,10) :  error: moving a local
object
> > in a return statement prevents copy elision [-Werror,-Wpessimizing-move]
> >   return std::move(instance);
> >          ^
> > ..\..\ui\gfx\win\direct_manipulation.cc(21,10) :  note: remove std::move
call
> > here
> >   return std::move(instance);
> >          ^~~~~~~~~~        ~
> > 1 error generated.
> > 
> > I'll take care of it. (If you build on Windows, see
> > https://chromium.googlesource.com/chromium/src/+/master/docs/clang.md for
how
> > you can use clang for local development.)
> 
> Sorry, I thought compiling it on Linux with clang would catch it all. Thanks
for
> fixing it.

Compiling on linux won't check any _win files (or _mac files).

Powered by Google App Engine
This is Rietveld 408576698