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

Side by Side Diff: device/vr/android/gvr/gvr_device_provider.h

Issue 2584343002: WIP: working copy-no-compositor path
Patch Set: StatTracker destructor, delete old magic numbers, mojo export 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 #ifndef DEVICE_VR_ANDROID_GVR_DEVICE_PROVIDER_H 5 #ifndef DEVICE_VR_ANDROID_GVR_DEVICE_PROVIDER_H
6 #define DEVICE_VR_ANDROID_GVR_DEVICE_PROVIDER_H 6 #define DEVICE_VR_ANDROID_GVR_DEVICE_PROVIDER_H
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 19 matching lines...) Expand all
30 // Called from GvrDevice. 30 // Called from GvrDevice.
31 void RequestPresent(const base::Callback<void(bool)>& callback); 31 void RequestPresent(const base::Callback<void(bool)>& callback);
32 void ExitPresent(); 32 void ExitPresent();
33 33
34 void OnGvrDelegateReady(GvrDelegate* delegate); 34 void OnGvrDelegateReady(GvrDelegate* delegate);
35 void OnGvrDelegateRemoved(); 35 void OnGvrDelegateRemoved();
36 36
37 // TODO(mthiesse): Make the NonPresentingDelegate owned by this class so that 37 // TODO(mthiesse): Make the NonPresentingDelegate owned by this class so that
38 // it cannot be removed. 38 // it cannot be removed.
39 void OnNonPresentingDelegateRemoved(); 39 void OnNonPresentingDelegateRemoved();
40 void OnFrameSubmitted(int32_t surface_handle, uint32_t frame_index, double ela psed);
40 void OnDisplayBlur(); 41 void OnDisplayBlur();
41 void OnDisplayFocus(); 42 void OnDisplayFocus();
42 void OnDisplayActivate(); 43 void OnDisplayActivate();
43 44
44 private: 45 private:
45 void SwitchToNonPresentingDelegate(); 46 void SwitchToNonPresentingDelegate();
46 47
47 std::unique_ptr<GvrDevice> vr_device_; 48 std::unique_ptr<GvrDevice> vr_device_;
48 49
49 DISALLOW_COPY_AND_ASSIGN(GvrDeviceProvider); 50 DISALLOW_COPY_AND_ASSIGN(GvrDeviceProvider);
50 }; 51 };
51 52
52 } // namespace device 53 } // namespace device
53 54
54 #endif // DEVICE_VR_ANDROID_GVR_DEVICE_PROVIDER_H 55 #endif // DEVICE_VR_ANDROID_GVR_DEVICE_PROVIDER_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698