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

Side by Side Diff: content/browser/renderer_host/compositor_impl_android.h

Issue 616603004: Replacing the OVERRIDE with override and FINAL with final in content/browser/renderer_host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased the patch Created 6 years, 2 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/cancelable_callback.h" 9 #include "base/cancelable_callback.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // failure. 53 // failure.
54 static int CreateSurfaceTexture(int child_process_id); 54 static int CreateSurfaceTexture(int child_process_id);
55 55
56 // Destroy all surface textures associated with |child_process_id|. 56 // Destroy all surface textures associated with |child_process_id|.
57 static void DestroyAllSurfaceTextures(int child_process_id); 57 static void DestroyAllSurfaceTextures(int child_process_id);
58 58
59 void PopulateGpuCapabilities(gpu::Capabilities gpu_capabilities); 59 void PopulateGpuCapabilities(gpu::Capabilities gpu_capabilities);
60 60
61 private: 61 private:
62 // Compositor implementation. 62 // Compositor implementation.
63 virtual void SetRootLayer(scoped_refptr<cc::Layer> root) OVERRIDE; 63 virtual void SetRootLayer(scoped_refptr<cc::Layer> root) override;
64 virtual void SetSurface(jobject surface) OVERRIDE; 64 virtual void SetSurface(jobject surface) override;
65 virtual void SetVisible(bool visible) OVERRIDE; 65 virtual void SetVisible(bool visible) override;
66 virtual void setDeviceScaleFactor(float factor) OVERRIDE; 66 virtual void setDeviceScaleFactor(float factor) override;
67 virtual void SetWindowBounds(const gfx::Size& size) OVERRIDE; 67 virtual void SetWindowBounds(const gfx::Size& size) override;
68 virtual void SetHasTransparentBackground(bool flag) OVERRIDE; 68 virtual void SetHasTransparentBackground(bool flag) override;
69 virtual void SetNeedsComposite() OVERRIDE; 69 virtual void SetNeedsComposite() override;
70 virtual UIResourceProvider& GetUIResourceProvider() OVERRIDE; 70 virtual UIResourceProvider& GetUIResourceProvider() override;
71 71
72 // LayerTreeHostClient implementation. 72 // LayerTreeHostClient implementation.
73 virtual void WillBeginMainFrame(int frame_id) OVERRIDE {} 73 virtual void WillBeginMainFrame(int frame_id) override {}
74 virtual void DidBeginMainFrame() OVERRIDE {} 74 virtual void DidBeginMainFrame() override {}
75 virtual void BeginMainFrame(const cc::BeginFrameArgs& args) OVERRIDE {} 75 virtual void BeginMainFrame(const cc::BeginFrameArgs& args) override {}
76 virtual void Layout() OVERRIDE; 76 virtual void Layout() override;
77 virtual void ApplyViewportDeltas( 77 virtual void ApplyViewportDeltas(
78 const gfx::Vector2d& inner_delta, 78 const gfx::Vector2d& inner_delta,
79 const gfx::Vector2d& outer_delta, 79 const gfx::Vector2d& outer_delta,
80 float page_scale, 80 float page_scale,
81 float top_controls_delta) OVERRIDE {} 81 float top_controls_delta) override {}
82 virtual void ApplyViewportDeltas( 82 virtual void ApplyViewportDeltas(
83 const gfx::Vector2d& scroll_delta, 83 const gfx::Vector2d& scroll_delta,
84 float page_scale, 84 float page_scale,
85 float top_controls_delta) OVERRIDE {} 85 float top_controls_delta) override {}
86 virtual void RequestNewOutputSurface(bool fallback) OVERRIDE; 86 virtual void RequestNewOutputSurface(bool fallback) override;
87 virtual void DidInitializeOutputSurface() OVERRIDE {} 87 virtual void DidInitializeOutputSurface() override {}
88 virtual void WillCommit() OVERRIDE {} 88 virtual void WillCommit() override {}
89 virtual void DidCommit() OVERRIDE; 89 virtual void DidCommit() override;
90 virtual void DidCommitAndDrawFrame() OVERRIDE {} 90 virtual void DidCommitAndDrawFrame() override {}
91 virtual void DidCompleteSwapBuffers() OVERRIDE; 91 virtual void DidCompleteSwapBuffers() override;
92 92
93 // LayerTreeHostSingleThreadClient implementation. 93 // LayerTreeHostSingleThreadClient implementation.
94 virtual void ScheduleComposite() OVERRIDE; 94 virtual void ScheduleComposite() override;
95 virtual void ScheduleAnimation() OVERRIDE; 95 virtual void ScheduleAnimation() override;
96 virtual void DidPostSwapBuffers() OVERRIDE; 96 virtual void DidPostSwapBuffers() override;
97 virtual void DidAbortSwapBuffers() OVERRIDE; 97 virtual void DidAbortSwapBuffers() override;
98 98
99 // ImageTransportFactoryAndroidObserver implementation. 99 // ImageTransportFactoryAndroidObserver implementation.
100 virtual void OnLostResources() OVERRIDE; 100 virtual void OnLostResources() override;
101 101
102 // WindowAndroidCompositor implementation. 102 // WindowAndroidCompositor implementation.
103 virtual void AttachLayerForReadback(scoped_refptr<cc::Layer> layer) OVERRIDE; 103 virtual void AttachLayerForReadback(scoped_refptr<cc::Layer> layer) override;
104 virtual void RequestCopyOfOutputOnRootLayer( 104 virtual void RequestCopyOfOutputOnRootLayer(
105 scoped_ptr<cc::CopyOutputRequest> request) OVERRIDE; 105 scoped_ptr<cc::CopyOutputRequest> request) override;
106 virtual void OnVSync(base::TimeTicks frame_time, 106 virtual void OnVSync(base::TimeTicks frame_time,
107 base::TimeDelta vsync_period) OVERRIDE; 107 base::TimeDelta vsync_period) override;
108 virtual void SetNeedsAnimate() OVERRIDE; 108 virtual void SetNeedsAnimate() override;
109 virtual ui::SystemUIResourceManager& GetSystemUIResourceManager() OVERRIDE; 109 virtual ui::SystemUIResourceManager& GetSystemUIResourceManager() override;
110 110
111 void SetWindowSurface(ANativeWindow* window); 111 void SetWindowSurface(ANativeWindow* window);
112 112
113 enum CompositingTrigger { 113 enum CompositingTrigger {
114 DO_NOT_COMPOSITE, 114 DO_NOT_COMPOSITE,
115 COMPOSITE_IMMEDIATELY, 115 COMPOSITE_IMMEDIATELY,
116 COMPOSITE_EVENTUALLY, 116 COMPOSITE_EVENTUALLY,
117 }; 117 };
118 void PostComposite(CompositingTrigger trigger); 118 void PostComposite(CompositingTrigger trigger);
119 void Composite(CompositingTrigger trigger); 119 void Composite(CompositingTrigger trigger);
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 base::TimeTicks last_vsync_; 191 base::TimeTicks last_vsync_;
192 192
193 base::WeakPtrFactory<CompositorImpl> weak_factory_; 193 base::WeakPtrFactory<CompositorImpl> weak_factory_;
194 194
195 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); 195 DISALLOW_COPY_AND_ASSIGN(CompositorImpl);
196 }; 196 };
197 197
198 } // namespace content 198 } // namespace content
199 199
200 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 200 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/clipboard_message_filter.h ('k') | content/browser/renderer_host/compositor_impl_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698