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

Unified Diff: content/common/gpu/image_transport_surface_calayer_mac.h

Issue 517733002: Revert of Fix assorted issues with remote CoreAnimation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean_up_accel_layers
Patch Set: Created 6 years, 4 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/common/gpu/image_transport_surface_calayer_mac.h
diff --git a/content/common/gpu/image_transport_surface_calayer_mac.h b/content/common/gpu/image_transport_surface_calayer_mac.h
index 96a01e484c83bc053ad74dc5bd8b5331bf1b58ea..85ee4181a3a33c82e46c6c9b4a825cdd5a36817c 100644
--- a/content/common/gpu/image_transport_surface_calayer_mac.h
+++ b/content/common/gpu/image_transport_surface_calayer_mac.h
@@ -28,26 +28,17 @@
CGLContextObj context, GLuint texture,
gfx::Size pixel_size, float scale_factor) OVERRIDE;
virtual void FreeColorBufferStorage() OVERRIDE;
- virtual void SwapBuffers(const gfx::Size& size, float scale_factor) OVERRIDE;
- virtual void WillWriteToBackbuffer() OVERRIDE;
- virtual void DiscardBackbuffer() OVERRIDE;
- virtual void SwapBuffersAckedByBrowser() OVERRIDE;
+ virtual uint64 GetSurfaceHandle() const OVERRIDE;
+ virtual void WillSwapBuffers() OVERRIDE;
+ virtual void CanFreeSwappedBuffer() OVERRIDE;
// Interface to ImageTransportLayer:
CGLContextObj LayerShareGroupContext();
bool LayerCanDraw();
void LayerDoDraw();
- void LayerResetStorageProvider();
private:
- void DrawWithVsyncDisabled();
- void SendPendingSwapToBrowserAfterFrameDrawn();
-
ImageTransportSurfaceFBO* transport_surface_;
-
- // Used to determine if we should use setNeedsDisplay or setAsynchronous to
- // animate.
- const bool gpu_vsync_disabled_;
// Set when a new swap occurs, and un-set when |layer_| draws that frame.
bool has_pending_draw_;
@@ -62,13 +53,11 @@
base::ScopedTypeRef<CGLContextObj> share_group_context_;
GLuint fbo_texture_;
gfx::Size fbo_pixel_size_;
- float fbo_scale_factor_;
// The CALayer that the current frame is being drawn into.
base::scoped_nsobject<CAContext> context_;
base::scoped_nsobject<ImageTransportLayer> layer_;
- base::WeakPtrFactory<CALayerStorageProvider> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(CALayerStorageProvider);
};

Powered by Google App Engine
This is Rietveld 408576698