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

Side by Side Diff: content/common/gpu/image_transport_surface_fbo_mac.h

Issue 630853003: Replace OVERRIDE and FINAL with override and final in content/common/[a-s]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_FBO_MAC_H_ 5 #ifndef CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_FBO_MAC_H_
6 #define CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_FBO_MAC_H_ 6 #define CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_FBO_MAC_H_
7 7
8 #include "base/mac/scoped_cftyperef.h" 8 #include "base/mac/scoped_cftyperef.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "content/common/gpu/gpu_command_buffer_stub.h" 10 #include "content/common/gpu/gpu_command_buffer_stub.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // Called once for every SwapBuffers call when the IPC for the present has 55 // Called once for every SwapBuffers call when the IPC for the present has
56 // been processed by the browser. 56 // been processed by the browser.
57 virtual void SwapBuffersAckedByBrowser() = 0; 57 virtual void SwapBuffersAckedByBrowser() = 0;
58 }; 58 };
59 59
60 ImageTransportSurfaceFBO(GpuChannelManager* manager, 60 ImageTransportSurfaceFBO(GpuChannelManager* manager,
61 GpuCommandBufferStub* stub, 61 GpuCommandBufferStub* stub,
62 gfx::PluginWindowHandle handle); 62 gfx::PluginWindowHandle handle);
63 63
64 // GLSurface implementation 64 // GLSurface implementation
65 virtual bool Initialize() OVERRIDE; 65 virtual bool Initialize() override;
66 virtual void Destroy() OVERRIDE; 66 virtual void Destroy() override;
67 virtual bool DeferDraws() OVERRIDE; 67 virtual bool DeferDraws() override;
68 virtual bool IsOffscreen() OVERRIDE; 68 virtual bool IsOffscreen() override;
69 virtual bool SwapBuffers() OVERRIDE; 69 virtual bool SwapBuffers() override;
70 virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE; 70 virtual bool PostSubBuffer(int x, int y, int width, int height) override;
71 virtual bool SupportsPostSubBuffer() OVERRIDE; 71 virtual bool SupportsPostSubBuffer() override;
72 virtual gfx::Size GetSize() OVERRIDE; 72 virtual gfx::Size GetSize() override;
73 virtual void* GetHandle() OVERRIDE; 73 virtual void* GetHandle() override;
74 virtual void* GetDisplay() OVERRIDE; 74 virtual void* GetDisplay() override;
75 virtual bool OnMakeCurrent(gfx::GLContext* context) OVERRIDE; 75 virtual bool OnMakeCurrent(gfx::GLContext* context) override;
76 virtual unsigned int GetBackingFrameBufferObject() OVERRIDE; 76 virtual unsigned int GetBackingFrameBufferObject() override;
77 virtual bool SetBackbufferAllocation(bool allocated) OVERRIDE; 77 virtual bool SetBackbufferAllocation(bool allocated) override;
78 virtual void SetFrontbufferAllocation(bool allocated) OVERRIDE; 78 virtual void SetFrontbufferAllocation(bool allocated) override;
79 79
80 // Called when the context may continue to make forward progress after a swap. 80 // Called when the context may continue to make forward progress after a swap.
81 void SendSwapBuffers(uint64 surface_handle, 81 void SendSwapBuffers(uint64 surface_handle,
82 const gfx::Size pixel_size, 82 const gfx::Size pixel_size,
83 float scale_factor); 83 float scale_factor);
84 84
85 protected: 85 protected:
86 // ImageTransportSurface implementation 86 // ImageTransportSurface implementation
87 virtual void OnBufferPresented( 87 virtual void OnBufferPresented(
88 const AcceleratedSurfaceMsg_BufferPresented_Params& params) OVERRIDE; 88 const AcceleratedSurfaceMsg_BufferPresented_Params& params) override;
89 virtual void OnResize(gfx::Size size, float scale_factor) OVERRIDE; 89 virtual void OnResize(gfx::Size size, float scale_factor) override;
90 virtual void SetLatencyInfo( 90 virtual void SetLatencyInfo(
91 const std::vector<ui::LatencyInfo>&) OVERRIDE; 91 const std::vector<ui::LatencyInfo>&) override;
92 virtual void WakeUpGpu() OVERRIDE; 92 virtual void WakeUpGpu() override;
93 93
94 // GpuCommandBufferStub::DestructionObserver implementation. 94 // GpuCommandBufferStub::DestructionObserver implementation.
95 virtual void OnWillDestroyStub() OVERRIDE; 95 virtual void OnWillDestroyStub() override;
96 96
97 private: 97 private:
98 virtual ~ImageTransportSurfaceFBO() OVERRIDE; 98 virtual ~ImageTransportSurfaceFBO() override;
99 99
100 void AdjustBufferAllocation(); 100 void AdjustBufferAllocation();
101 void DestroyFramebuffer(); 101 void DestroyFramebuffer();
102 void CreateFramebuffer(); 102 void CreateFramebuffer();
103 103
104 scoped_ptr<StorageProvider> storage_provider_; 104 scoped_ptr<StorageProvider> storage_provider_;
105 105
106 // Tracks the current buffer allocation state. 106 // Tracks the current buffer allocation state.
107 bool backbuffer_suggested_allocation_; 107 bool backbuffer_suggested_allocation_;
108 bool frontbuffer_suggested_allocation_; 108 bool frontbuffer_suggested_allocation_;
(...skipping 18 matching lines...) Expand all
127 std::vector<ui::LatencyInfo> latency_info_; 127 std::vector<ui::LatencyInfo> latency_info_;
128 128
129 scoped_ptr<ImageTransportHelper> helper_; 129 scoped_ptr<ImageTransportHelper> helper_;
130 130
131 DISALLOW_COPY_AND_ASSIGN(ImageTransportSurfaceFBO); 131 DISALLOW_COPY_AND_ASSIGN(ImageTransportSurfaceFBO);
132 }; 132 };
133 133
134 } // namespace content 134 } // namespace content
135 135
136 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_MAC_H_ 136 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_MAC_H_
OLDNEW
« no previous file with comments | « content/common/gpu/image_transport_surface_calayer_mac.h ('k') | content/common/gpu/image_transport_surface_iosurface_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698