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

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

Issue 647053002: Make remote CoreAnimation GPU-switching aware (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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 virtual void* GetDisplay() override; 75 virtual void* GetDisplay() override;
76 virtual bool OnMakeCurrent(gfx::GLContext* context) override; 76 virtual bool OnMakeCurrent(gfx::GLContext* context) override;
77 virtual unsigned int GetBackingFrameBufferObject() override; 77 virtual unsigned int GetBackingFrameBufferObject() override;
78 virtual bool SetBackbufferAllocation(bool allocated) override; 78 virtual bool SetBackbufferAllocation(bool allocated) override;
79 virtual void SetFrontbufferAllocation(bool allocated) override; 79 virtual void SetFrontbufferAllocation(bool allocated) override;
80 80
81 // Called when the context may continue to make forward progress after a swap. 81 // Called when the context may continue to make forward progress after a swap.
82 void SendSwapBuffers(uint64 surface_handle, 82 void SendSwapBuffers(uint64 surface_handle,
83 const gfx::Size pixel_size, 83 const gfx::Size pixel_size,
84 float scale_factor); 84 float scale_factor);
85 void SetRendererID(int renderer_id);
85 86
86 protected: 87 protected:
87 // ImageTransportSurface implementation 88 // ImageTransportSurface implementation
88 virtual void OnBufferPresented( 89 virtual void OnBufferPresented(
89 const AcceleratedSurfaceMsg_BufferPresented_Params& params) override; 90 const AcceleratedSurfaceMsg_BufferPresented_Params& params) override;
90 virtual void OnResize(gfx::Size size, float scale_factor) override; 91 virtual void OnResize(gfx::Size size, float scale_factor) override;
91 virtual void SetLatencyInfo( 92 virtual void SetLatencyInfo(
92 const std::vector<ui::LatencyInfo>&) override; 93 const std::vector<ui::LatencyInfo>&) override;
93 virtual void WakeUpGpu() override; 94 virtual void WakeUpGpu() override;
94 95
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 std::vector<ui::LatencyInfo> latency_info_; 129 std::vector<ui::LatencyInfo> latency_info_;
129 130
130 scoped_ptr<ImageTransportHelper> helper_; 131 scoped_ptr<ImageTransportHelper> helper_;
131 132
132 DISALLOW_COPY_AND_ASSIGN(ImageTransportSurfaceFBO); 133 DISALLOW_COPY_AND_ASSIGN(ImageTransportSurfaceFBO);
133 }; 134 };
134 135
135 } // namespace content 136 } // namespace content
136 137
137 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_MAC_H_ 138 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_MAC_H_
OLDNEW
« no previous file with comments | « content/common/gpu/image_transport_surface_calayer_mac.mm ('k') | content/common/gpu/image_transport_surface_fbo_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698