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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp

Issue 1981823002: Remove OwnPtr::release() calls in platform/ (part 1). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "platform/graphics/compositing/PaintArtifactCompositor.h" 5 #include "platform/graphics/compositing/PaintArtifactCompositor.h"
6 6
7 #include "cc/layers/content_layer_client.h" 7 #include "cc/layers/content_layer_client.h"
8 #include "cc/layers/layer.h" 8 #include "cc/layers/layer.h"
9 #include "cc/layers/picture_layer.h" 9 #include "cc/layers/picture_layer.h"
10 #include "cc/playback/display_item_list.h" 10 #include "cc/playback/display_item_list.h"
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 transform.ConcatTransform(undoClipOffset); 416 transform.ConcatTransform(undoClipOffset);
417 } 417 }
418 418
419 scoped_refptr<cc::PictureLayer> layer = cc::PictureLayer::Create(contentLaye rClient.get()); 419 scoped_refptr<cc::PictureLayer> layer = cc::PictureLayer::Create(contentLaye rClient.get());
420 layer->SetBounds(combinedBounds.size()); 420 layer->SetBounds(combinedBounds.size());
421 layer->SetTransform(transform); 421 layer->SetTransform(transform);
422 layer->SetIsDrawable(true); 422 layer->SetIsDrawable(true);
423 layer->SetDoubleSided(!paintChunk.properties.backfaceHidden); 423 layer->SetDoubleSided(!paintChunk.properties.backfaceHidden);
424 if (paintChunk.knownToBeOpaque) 424 if (paintChunk.knownToBeOpaque)
425 layer->SetContentsOpaque(true); 425 layer->SetContentsOpaque(true);
426 m_contentLayerClients.append(contentLayerClient.release()); 426 m_contentLayerClients.append(std::move(contentLayerClient));
427 return layer; 427 return layer;
428 } 428 }
429 429
430 } // namespace blink 430 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698