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

Unified Diff: cc/layers/layer_lists.cc

Issue 502203003: Remove implicit conversions from scoped_refptr to T* in cc/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change to use .get() instead of rewriting local variable Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/delegated_renderer_layer_unittest.cc ('k') | cc/layers/layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_lists.cc
diff --git a/cc/layers/layer_lists.cc b/cc/layers/layer_lists.cc
index fda1a1cf9f80856d9645cddb84f89f02d81f088b..7a4df7295a3e83ebab247e318ccf8f0b64101eab 100644
--- a/cc/layers/layer_lists.cc
+++ b/cc/layers/layer_lists.cc
@@ -16,7 +16,7 @@ RenderSurfaceLayerList::~RenderSurfaceLayerList() {
}
Layer* RenderSurfaceLayerList::at(size_t i) const {
- return list_.at(i);
+ return list_.at(i).get();
}
void RenderSurfaceLayerList::pop_back() {
@@ -28,7 +28,7 @@ void RenderSurfaceLayerList::push_back(const scoped_refptr<Layer>& layer) {
}
Layer* RenderSurfaceLayerList::back() {
- return list_.back();
+ return list_.back().get();
}
size_t RenderSurfaceLayerList::size() const {
« no previous file with comments | « cc/layers/delegated_renderer_layer_unittest.cc ('k') | cc/layers/layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698