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

Side by Side Diff: third_party/WebKit/Source/modules/vr/VRDisplay.cpp

Issue 2614663008: Migrate WTF::Vector::append() to ::push_back() [part 13 of N] (Closed)
Patch Set: Created 3 years, 11 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "modules/vr/VRDisplay.h" 5 #include "modules/vr/VRDisplay.h"
6 6
7 #include "core/css/StylePropertySet.h" 7 #include "core/css/StylePropertySet.h"
8 #include "core/dom/DOMException.h" 8 #include "core/dom/DOMException.h"
9 #include "core/dom/DocumentUserGestureToken.h" 9 #include "core/dom/DocumentUserGestureToken.h"
10 #include "core/dom/FrameRequestCallback.h" 10 #include "core/dom/FrameRequestCallback.h"
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 rightBounds->height = 1.0f; 573 rightBounds->height = 1.0f;
574 } 574 }
575 575
576 m_display->UpdateLayerBounds(std::move(leftBounds), std::move(rightBounds)); 576 m_display->UpdateLayerBounds(std::move(leftBounds), std::move(rightBounds));
577 } 577 }
578 578
579 HeapVector<VRLayer> VRDisplay::getLayers() { 579 HeapVector<VRLayer> VRDisplay::getLayers() {
580 HeapVector<VRLayer> layers; 580 HeapVector<VRLayer> layers;
581 581
582 if (m_isPresenting) { 582 if (m_isPresenting) {
583 layers.append(m_layer); 583 layers.push_back(m_layer);
584 } 584 }
585 585
586 return layers; 586 return layers;
587 } 587 }
588 588
589 void VRDisplay::submitFrame() { 589 void VRDisplay::submitFrame() {
590 if (!m_display) 590 if (!m_display)
591 return; 591 return;
592 592
593 Document* doc = this->document(); 593 Document* doc = this->document();
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
766 visitor->trace(m_stageParameters); 766 visitor->trace(m_stageParameters);
767 visitor->trace(m_eyeParametersLeft); 767 visitor->trace(m_eyeParametersLeft);
768 visitor->trace(m_eyeParametersRight); 768 visitor->trace(m_eyeParametersRight);
769 visitor->trace(m_layer); 769 visitor->trace(m_layer);
770 visitor->trace(m_renderingContext); 770 visitor->trace(m_renderingContext);
771 visitor->trace(m_scriptedAnimationController); 771 visitor->trace(m_scriptedAnimationController);
772 visitor->trace(m_pendingPresentResolvers); 772 visitor->trace(m_pendingPresentResolvers);
773 } 773 }
774 774
775 } // namespace blink 775 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/vr/VRController.cpp ('k') | third_party/WebKit/Source/modules/webaudio/AudioBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698