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

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

Issue 2646243002: Use IDCompositionSurface to implement DirectCompositionSurfaceWin. (Closed)
Patch Set: rebase Created 3 years, 10 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_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
6 #define CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 6 #define CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 void Reshape(const gfx::Size& size, 68 void Reshape(const gfx::Size& size,
69 float device_scale_factor, 69 float device_scale_factor,
70 const gfx::ColorSpace& color_space, 70 const gfx::ColorSpace& color_space,
71 bool has_alpha, 71 bool has_alpha,
72 bool use_stencil) override; 72 bool use_stencil) override;
73 void SwapBuffers(cc::OutputSurfaceFrame frame) override; 73 void SwapBuffers(cc::OutputSurfaceFrame frame) override;
74 uint32_t GetFramebufferCopyTextureFormat() override; 74 uint32_t GetFramebufferCopyTextureFormat() override;
75 bool IsDisplayedAsOverlayPlane() const override; 75 bool IsDisplayedAsOverlayPlane() const override;
76 unsigned GetOverlayTextureId() const override; 76 unsigned GetOverlayTextureId() const override;
77 bool SurfaceIsSuspendForRecycle() const override; 77 bool SurfaceIsSuspendForRecycle() const override;
78 void SetDrawRectangle(const gfx::Rect& rect) override;
78 79
79 protected: 80 protected:
80 gpu::CommandBufferProxyImpl* GetCommandBufferProxy(); 81 gpu::CommandBufferProxyImpl* GetCommandBufferProxy();
81 82
82 cc::OutputSurfaceClient* client_ = nullptr; 83 cc::OutputSurfaceClient* client_ = nullptr;
83 std::unique_ptr<ReflectorTexture> reflector_texture_; 84 std::unique_ptr<ReflectorTexture> reflector_texture_;
85 bool set_draw_rectangle_for_frame_ = false;
86 // True if the draw rectangle has been set at all since the last resize.
87 bool has_set_draw_rectangle_ = false;
sunnyps 2017/02/14 22:09:13 nit: has_set_draw_rectangle_since_last_resize_
88 gfx::Size size_;
84 base::WeakPtrFactory<GpuBrowserCompositorOutputSurface> weak_ptr_factory_; 89 base::WeakPtrFactory<GpuBrowserCompositorOutputSurface> weak_ptr_factory_;
85 90
86 private: 91 private:
87 DISALLOW_COPY_AND_ASSIGN(GpuBrowserCompositorOutputSurface); 92 DISALLOW_COPY_AND_ASSIGN(GpuBrowserCompositorOutputSurface);
88 }; 93 };
89 94
90 } // namespace content 95 } // namespace content
91 96
92 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 97 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « cc/output/output_surface.h ('k') | content/browser/compositor/gpu_browser_compositor_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698