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

Unified Diff: cc/surfaces/compositor_frame_sink_support.h

Issue 2848223003: Enforce constant size and device scale factor for surfaces (Closed)
Patch Set: Address comments Created 3 years, 7 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
« no previous file with comments | « android_webview/browser/test/rendering_test.cc ('k') | cc/surfaces/compositor_frame_sink_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/compositor_frame_sink_support.h
diff --git a/cc/surfaces/compositor_frame_sink_support.h b/cc/surfaces/compositor_frame_sink_support.h
index f3440e1b369d92a96a236457b3d1061d68709e07..ed2c154a7f8d95415f1ca5fada6f98e8bc4705b9 100644
--- a/cc/surfaces/compositor_frame_sink_support.h
+++ b/cc/surfaces/compositor_frame_sink_support.h
@@ -15,7 +15,7 @@
#include "cc/scheduler/begin_frame_source.h"
#include "cc/surfaces/frame_sink_manager_client.h"
#include "cc/surfaces/referenced_surface_tracker.h"
-#include "cc/surfaces/surface_id.h"
+#include "cc/surfaces/surface_info.h"
#include "cc/surfaces/surface_resource_holder.h"
#include "cc/surfaces/surface_resource_holder_client.h"
#include "cc/surfaces/surfaces_export.h"
@@ -60,7 +60,7 @@ class CC_SURFACES_EXPORT CompositorFrameSinkSupport
void EvictCurrentSurface();
void SetNeedsBeginFrame(bool needs_begin_frame);
void DidNotProduceFrame(const BeginFrameAck& ack);
- void SubmitCompositorFrame(const LocalSurfaceId& local_surface_id,
+ bool SubmitCompositorFrame(const LocalSurfaceId& local_surface_id,
CompositorFrame frame);
void RequestCopyOfSurface(std::unique_ptr<CopyOutputRequest> request);
void ClaimTemporaryReference(const SurfaceId& surface_id);
@@ -105,8 +105,7 @@ class CC_SURFACES_EXPORT CompositorFrameSinkSupport
void OnBeginFrameSourcePausedChanged(bool paused) override;
void UpdateNeedsBeginFramesInternal();
- std::unique_ptr<Surface> CreateSurface(
- const LocalSurfaceId& local_surface_id);
+ std::unique_ptr<Surface> CreateSurface(const SurfaceInfo& surface_info);
void DestroyCurrentSurface();
CompositorFrameSinkSupportClient* const client_;
« no previous file with comments | « android_webview/browser/test/rendering_test.cc ('k') | cc/surfaces/compositor_frame_sink_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698