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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/compositor/gpu_browser_compositor_output_surface.h
diff --git a/content/browser/compositor/gpu_browser_compositor_output_surface.h b/content/browser/compositor/gpu_browser_compositor_output_surface.h
index 09fd1ef8f27fc46f84c0b6dc661c393b864a9bef..1212ccd0e2739d53d19024b7145659bdf7935bc5 100644
--- a/content/browser/compositor/gpu_browser_compositor_output_surface.h
+++ b/content/browser/compositor/gpu_browser_compositor_output_surface.h
@@ -76,6 +76,7 @@ class GpuBrowserCompositorOutputSurface : public BrowserCompositorOutputSurface,
bool IsDisplayedAsOverlayPlane() const override;
unsigned GetOverlayTextureId() const override;
bool SurfaceIsSuspendForRecycle() const override;
+ void SetDrawRectangle(const gfx::Rect& rect) override;
// GpuVSyncControl implementation.
void SetNeedsVSync(bool needs_vsync) override;
@@ -85,6 +86,10 @@ class GpuBrowserCompositorOutputSurface : public BrowserCompositorOutputSurface,
cc::OutputSurfaceClient* client_ = nullptr;
std::unique_ptr<ReflectorTexture> reflector_texture_;
+ bool set_draw_rectangle_for_frame_ = false;
+ // True if the draw rectangle has been set at all since the last resize.
+ bool has_set_draw_rectangle_since_last_resize_ = false;
+ gfx::Size size_;
base::WeakPtrFactory<GpuBrowserCompositorOutputSurface> weak_ptr_factory_;
private:
« 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