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

Side by Side Diff: content/browser/compositor/gpu_surfaceless_browser_compositor_output_surface.h

Issue 2776923003: cc: Partial draw without partial swap support. (Closed)
Patch Set: avoid BufferQueue::RecreateBuffer changes Created 3 years, 8 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_BROWSER_COMPOSITOR_GPU_SURFACELESS_BROWSER_COMPOSITOR_OUTPUT_SUR FACE_H_ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_GPU_SURFACELESS_BROWSER_COMPOSITOR_OUTPUT_SUR FACE_H_
6 #define CONTENT_BROWSER_COMPOSITOR_GPU_SURFACELESS_BROWSER_COMPOSITOR_OUTPUT_SUR FACE_H_ 6 #define CONTENT_BROWSER_COMPOSITOR_GPU_SURFACELESS_BROWSER_COMPOSITOR_OUTPUT_SUR FACE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "content/browser/compositor/gpu_browser_compositor_output_surface.h" 10 #include "content/browser/compositor/gpu_browser_compositor_output_surface.h"
(...skipping 29 matching lines...) Expand all
40 void SwapBuffers(cc::OutputSurfaceFrame frame) override; 40 void SwapBuffers(cc::OutputSurfaceFrame frame) override;
41 void BindFramebuffer() override; 41 void BindFramebuffer() override;
42 uint32_t GetFramebufferCopyTextureFormat() override; 42 uint32_t GetFramebufferCopyTextureFormat() override;
43 void Reshape(const gfx::Size& size, 43 void Reshape(const gfx::Size& size,
44 float device_scale_factor, 44 float device_scale_factor,
45 const gfx::ColorSpace& color_space, 45 const gfx::ColorSpace& color_space,
46 bool has_alpha, 46 bool has_alpha,
47 bool use_stencil) override; 47 bool use_stencil) override;
48 bool IsDisplayedAsOverlayPlane() const override; 48 bool IsDisplayedAsOverlayPlane() const override;
49 unsigned GetOverlayTextureId() const override; 49 unsigned GetOverlayTextureId() const override;
50 bool CanPartialDraw(const gfx::Rect& damage) override;
50 51
51 // BrowserCompositorOutputSurface implementation. 52 // BrowserCompositorOutputSurface implementation.
52 void OnGpuSwapBuffersCompleted( 53 void OnGpuSwapBuffersCompleted(
53 const std::vector<ui::LatencyInfo>& latency_info, 54 const std::vector<ui::LatencyInfo>& latency_info,
54 gfx::SwapResult result, 55 gfx::SwapResult result,
55 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac) override; 56 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac) override;
56 57
57 private: 58 private:
58 gfx::Size reshape_size_; 59 gfx::Size reshape_size_;
59 gfx::Size swap_size_; 60 gfx::Size swap_size_;
60 61
61 std::unique_ptr<display_compositor::GLHelper> gl_helper_; 62 std::unique_ptr<display_compositor::GLHelper> gl_helper_;
62 std::unique_ptr<display_compositor::BufferQueue> buffer_queue_; 63 std::unique_ptr<display_compositor::BufferQueue> buffer_queue_;
63 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_; 64 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_;
64 }; 65 };
65 66
66 } // namespace content 67 } // namespace content
67 68
68 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_SURFACELESS_BROWSER_COMPOSITOR_OUTPUT_ SURFACE_H_ 69 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_SURFACELESS_BROWSER_COMPOSITOR_OUTPUT_ SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698