Chromium Code Reviews
DescriptionTheme suppliers: Avoid all Image copying.
DO NOT SUBMIT: This is a case study / proof of concept for
https://crbug.com/600237 (making gfx::Image non-copyable). It makes it
much easier to reason about the ownership of Images.
CustomThemeSupplier::GetImageNamed returns a const Image&, not an Image.
The caller no longer takes ownership of a new Image object; it just
temporarily holds a reference to an image owned by either the theme
supplier or the resource bundle.
BrowserThemePack: Avoid copying Image objects internally by using
std::move. Some minor refactoring of relevant code.
BUG=600237
Patch Set 1 #Patch Set 2 : Rebase. #Messages
Total messages: 1 (1 generated)
|