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

Side by Side Diff: Source/core/rendering/RenderLayerCompositor.h

Issue 22454003: Support subtitles for native fullscreen video (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add dangling pointer check Created 7 years, 3 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 void resetTrackedRepaintRects(); 199 void resetTrackedRepaintRects();
200 void setTracksRepaints(bool); 200 void setTracksRepaints(bool);
201 201
202 void setShouldReevaluateCompositingAfterLayout() { m_reevaluateCompositingAf terLayout = true; } 202 void setShouldReevaluateCompositingAfterLayout() { m_reevaluateCompositingAf terLayout = true; }
203 203
204 // Returns all reasons (direct, indirectly due to subtree, and indirectly du e to overlap) that a layer should be composited. 204 // Returns all reasons (direct, indirectly due to subtree, and indirectly du e to overlap) that a layer should be composited.
205 CompositingReasons reasonsForCompositing(const RenderLayer*) const; 205 CompositingReasons reasonsForCompositing(const RenderLayer*) const;
206 206
207 virtual String debugName(const GraphicsLayer*) OVERRIDE; 207 virtual String debugName(const GraphicsLayer*) OVERRIDE;
208 208
209 // Only called for main frame. Input object can be cross frame.
210 void setCurrentFullscreenRenderer(RenderObject*);
211
209 private: 212 private:
210 class OverlapMap; 213 class OverlapMap;
211 214
212 // GraphicsLayerClient implementation 215 // GraphicsLayerClient implementation
213 virtual void notifyAnimationStarted(const GraphicsLayer*, double) OVERRIDE { } 216 virtual void notifyAnimationStarted(const GraphicsLayer*, double) OVERRIDE { }
214 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL ayerPaintingPhase, const IntRect&) OVERRIDE; 217 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL ayerPaintingPhase, const IntRect&) OVERRIDE;
215 218
216 virtual bool isTrackingRepaints() const OVERRIDE; 219 virtual bool isTrackingRepaints() const OVERRIDE;
217 220
218 // Whether the given RL needs a compositing layer. 221 // Whether the given RL needs a compositing layer.
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 350
348 // Layers for overflow controls 351 // Layers for overflow controls
349 OwnPtr<GraphicsLayer> m_layerForHorizontalScrollbar; 352 OwnPtr<GraphicsLayer> m_layerForHorizontalScrollbar;
350 OwnPtr<GraphicsLayer> m_layerForVerticalScrollbar; 353 OwnPtr<GraphicsLayer> m_layerForVerticalScrollbar;
351 OwnPtr<GraphicsLayer> m_layerForScrollCorner; 354 OwnPtr<GraphicsLayer> m_layerForScrollCorner;
352 #if ENABLE(RUBBER_BANDING) 355 #if ENABLE(RUBBER_BANDING)
353 OwnPtr<GraphicsLayer> m_layerForOverhangAreas; 356 OwnPtr<GraphicsLayer> m_layerForOverhangAreas;
354 OwnPtr<GraphicsLayer> m_layerForOverhangShadow; 357 OwnPtr<GraphicsLayer> m_layerForOverhangShadow;
355 #endif 358 #endif
356 359
360 RenderObject* m_currentFullscreenRenderer;
361
357 #if !LOG_DISABLED 362 #if !LOG_DISABLED
358 int m_rootLayerUpdateCount; 363 int m_rootLayerUpdateCount;
359 int m_obligateCompositedLayerCount; // count of layer that have to be compos ited. 364 int m_obligateCompositedLayerCount; // count of layer that have to be compos ited.
360 int m_secondaryCompositedLayerCount; // count of layers that have to be comp osited because of stacking or overlap. 365 int m_secondaryCompositedLayerCount; // count of layers that have to be comp osited because of stacking or overlap.
361 double m_obligatoryBackingStoreBytes; 366 double m_obligatoryBackingStoreBytes;
362 double m_secondaryBackingStoreBytes; 367 double m_secondaryBackingStoreBytes;
363 #endif 368 #endif
364 }; 369 };
365 370
366 371
367 } // namespace WebCore 372 } // namespace WebCore
368 373
369 #endif // RenderLayerCompositor_h 374 #endif // RenderLayerCompositor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698