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

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

Issue 1366473002: Move WakeUpGpu logic to GpuChannelManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo Created 5 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 void SetRendererID(int renderer_id); 90 void SetRendererID(int renderer_id);
91 91
92 const gpu::gles2::FeatureInfo* GetFeatureInfo() const; 92 const gpu::gles2::FeatureInfo* GetFeatureInfo() const;
93 93
94 protected: 94 protected:
95 // ImageTransportSurface implementation 95 // ImageTransportSurface implementation
96 void OnBufferPresented( 96 void OnBufferPresented(
97 const AcceleratedSurfaceMsg_BufferPresented_Params& params) override; 97 const AcceleratedSurfaceMsg_BufferPresented_Params& params) override;
98 void OnResize(gfx::Size pixel_size, float scale_factor) override; 98 void OnResize(gfx::Size pixel_size, float scale_factor) override;
99 void SetLatencyInfo(const std::vector<ui::LatencyInfo>&) override; 99 void SetLatencyInfo(const std::vector<ui::LatencyInfo>&) override;
100 void WakeUpGpu() override;
101 100
102 // GpuCommandBufferStub::DestructionObserver implementation. 101 // GpuCommandBufferStub::DestructionObserver implementation.
103 void OnWillDestroyStub() override; 102 void OnWillDestroyStub() override;
104 103
105 private: 104 private:
106 ~ImageTransportSurfaceFBO() override; 105 ~ImageTransportSurfaceFBO() override;
107 106
108 void AdjustBufferAllocation(); 107 void AdjustBufferAllocation();
109 void DestroyFramebuffer(); 108 void DestroyFramebuffer();
110 void AllocateOrResizeFramebuffer( 109 void AllocateOrResizeFramebuffer(
(...skipping 27 matching lines...) Expand all
138 gfx::Rect pending_swap_pixel_damage_rect_; 137 gfx::Rect pending_swap_pixel_damage_rect_;
139 138
140 scoped_ptr<ImageTransportHelper> helper_; 139 scoped_ptr<ImageTransportHelper> helper_;
141 140
142 DISALLOW_COPY_AND_ASSIGN(ImageTransportSurfaceFBO); 141 DISALLOW_COPY_AND_ASSIGN(ImageTransportSurfaceFBO);
143 }; 142 };
144 143
145 } // namespace content 144 } // namespace content
146 145
147 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_FBO_MAC_H_ 146 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_FBO_MAC_H_
OLDNEW
« no previous file with comments | « content/common/gpu/image_transport_surface_android.cc ('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