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

Side by Side Diff: content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.h

Issue 2521013003: Compositing Layer update for OffscreenCanvas resize (Closed)
Patch Set: test Created 4 years 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_RENDERER_HOST_OFFSCREEN_CANVAS_COMPOSITOR_FRAME_SINK_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_COMPOSITOR_FRAME_SINK_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_COMPOSITOR_FRAME_SINK_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_COMPOSITOR_FRAME_SINK_H_
7 7
8 #include "cc/surfaces/surface_factory.h" 8 #include "cc/surfaces/surface_factory.h"
9 #include "cc/surfaces/surface_factory_client.h" 9 #include "cc/surfaces/surface_factory_client.h"
10 #include "third_party/WebKit/public/platform/modules/offscreencanvas/offscreen_c anvas_surface.mojom.h" 10 #include "third_party/WebKit/public/platform/modules/offscreencanvas/offscreen_c anvas_surface.mojom.h"
(...skipping 21 matching lines...) Expand all
32 void ReturnResources(const cc::ReturnedResourceArray& resources) override; 32 void ReturnResources(const cc::ReturnedResourceArray& resources) override;
33 void WillDrawSurface(const cc::LocalFrameId& id, 33 void WillDrawSurface(const cc::LocalFrameId& id,
34 const gfx::Rect& damage_rect) override; 34 const gfx::Rect& damage_rect) override;
35 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; 35 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override;
36 36
37 private: 37 private:
38 void DidReceiveCompositorFrameAck(); 38 void DidReceiveCompositorFrameAck();
39 39
40 cc::SurfaceId surface_id_; 40 cc::SurfaceId surface_id_;
41 std::unique_ptr<cc::SurfaceFactory> surface_factory_; 41 std::unique_ptr<cc::SurfaceFactory> surface_factory_;
42 gfx::Size current_surface_size_;
42 cc::mojom::MojoCompositorFrameSinkClientPtr client_; 43 cc::mojom::MojoCompositorFrameSinkClientPtr client_;
43 int ack_pending_count_ = 0; 44 int ack_pending_count_ = 0;
44 cc::ReturnedResourceArray surface_returned_resources_; 45 cc::ReturnedResourceArray surface_returned_resources_;
45 46
46 DISALLOW_COPY_AND_ASSIGN(OffscreenCanvasCompositorFrameSink); 47 DISALLOW_COPY_AND_ASSIGN(OffscreenCanvasCompositorFrameSink);
47 }; 48 };
48 49
49 } // namespace content 50 } // namespace content
50 51
51 #endif // CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_COMPOSITOR_FRAME_SINK_ H_ 52 #endif // CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_COMPOSITOR_FRAME_SINK_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698