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

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, 9 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void Reshape(const gfx::Size& size, 69 void Reshape(const gfx::Size& size,
70 float device_scale_factor, 70 float device_scale_factor,
71 const gfx::ColorSpace& color_space, 71 const gfx::ColorSpace& color_space,
72 bool has_alpha, 72 bool has_alpha,
73 bool use_stencil) override; 73 bool use_stencil) override;
74 void SwapBuffers(cc::OutputSurfaceFrame frame) override; 74 void SwapBuffers(cc::OutputSurfaceFrame frame) override;
75 uint32_t GetFramebufferCopyTextureFormat() override; 75 uint32_t GetFramebufferCopyTextureFormat() override;
76 bool IsDisplayedAsOverlayPlane() const override; 76 bool IsDisplayedAsOverlayPlane() const override;
77 unsigned GetOverlayTextureId() const override; 77 unsigned GetOverlayTextureId() const override;
78 bool SurfaceIsSuspendForRecycle() const override; 78 bool SurfaceIsSuspendForRecycle() const override;
79 void SetDrawRectangle(const gfx::Rect& rect) override;
79 80
80 // GpuVSyncControl implementation. 81 // GpuVSyncControl implementation.
81 void SetNeedsVSync(bool needs_vsync) override; 82 void SetNeedsVSync(bool needs_vsync) override;
82 83
83 protected: 84 protected:
84 gpu::CommandBufferProxyImpl* GetCommandBufferProxy(); 85 gpu::CommandBufferProxyImpl* GetCommandBufferProxy();
85 86
86 cc::OutputSurfaceClient* client_ = nullptr; 87 cc::OutputSurfaceClient* client_ = nullptr;
87 std::unique_ptr<ReflectorTexture> reflector_texture_; 88 std::unique_ptr<ReflectorTexture> reflector_texture_;
89 bool set_draw_rectangle_for_frame_ = false;
90 // True if the draw rectangle has been set at all since the last resize.
91 bool has_set_draw_rectangle_since_last_resize_ = false;
92 gfx::Size size_;
88 base::WeakPtrFactory<GpuBrowserCompositorOutputSurface> weak_ptr_factory_; 93 base::WeakPtrFactory<GpuBrowserCompositorOutputSurface> weak_ptr_factory_;
89 94
90 private: 95 private:
91 DISALLOW_COPY_AND_ASSIGN(GpuBrowserCompositorOutputSurface); 96 DISALLOW_COPY_AND_ASSIGN(GpuBrowserCompositorOutputSurface);
92 }; 97 };
93 98
94 } // namespace content 99 } // namespace content
95 100
96 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 101 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « cc/test/test_web_graphics_context_3d.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