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

Side by Side Diff: Source/platform/graphics/GraphicsLayer.h

Issue 183103007: Implement will-change-based GPU rasterization hint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Move hint from WebLayer to WebContentLayer Created 6 years, 9 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
« no previous file with comments | « Source/core/rendering/style/RenderStyle.cpp ('k') | Source/platform/graphics/GraphicsLayer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. 3 * Copyright (C) 2013 Intel Corporation. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 198
199 float opacity() const { return m_opacity; } 199 float opacity() const { return m_opacity; }
200 void setOpacity(float); 200 void setOpacity(float);
201 201
202 blink::WebBlendMode blendMode() const { return m_blendMode; } 202 blink::WebBlendMode blendMode() const { return m_blendMode; }
203 void setBlendMode(blink::WebBlendMode); 203 void setBlendMode(blink::WebBlendMode);
204 204
205 bool isRootForIsolatedGroup() const { return m_isRootForIsolatedGroup; } 205 bool isRootForIsolatedGroup() const { return m_isRootForIsolatedGroup; }
206 void setIsRootForIsolatedGroup(bool); 206 void setIsRootForIsolatedGroup(bool);
207 207
208 bool hasGpuRasterizationHint() const { return m_hasGpuRasterizationHint; }
209 void setHasGpuRasterizationHint(bool);
210
208 const FilterOperations& filters() const { return m_filters; } 211 const FilterOperations& filters() const { return m_filters; }
209 212
210 // Returns true if filter can be rendered by the compositor 213 // Returns true if filter can be rendered by the compositor
211 bool setFilters(const FilterOperations&); 214 bool setFilters(const FilterOperations&);
212 void setBackgroundFilters(const FilterOperations&); 215 void setBackgroundFilters(const FilterOperations&);
213 216
214 // Some GraphicsLayers paint only the foreground or the background content 217 // Some GraphicsLayers paint only the foreground or the background content
215 GraphicsLayerPaintingPhase paintingPhase() const { return m_paintingPhase; } 218 GraphicsLayerPaintingPhase paintingPhase() const { return m_paintingPhase; }
216 void setPaintingPhase(GraphicsLayerPaintingPhase phase) { m_paintingPhase = phase; } 219 void setPaintingPhase(GraphicsLayerPaintingPhase phase) { m_paintingPhase = phase; }
217 220
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 355
353 FilterOperations m_filters; 356 FilterOperations m_filters;
354 357
355 bool m_contentsOpaque : 1; 358 bool m_contentsOpaque : 1;
356 bool m_shouldFlattenTransform: 1; 359 bool m_shouldFlattenTransform: 1;
357 bool m_backfaceVisibility : 1; 360 bool m_backfaceVisibility : 1;
358 bool m_masksToBounds : 1; 361 bool m_masksToBounds : 1;
359 bool m_drawsContent : 1; 362 bool m_drawsContent : 1;
360 bool m_contentsVisible : 1; 363 bool m_contentsVisible : 1;
361 bool m_isRootForIsolatedGroup : 1; 364 bool m_isRootForIsolatedGroup : 1;
365 bool m_hasGpuRasterizationHint: 1;
362 366
363 bool m_hasScrollParent : 1; 367 bool m_hasScrollParent : 1;
364 bool m_hasClipParent : 1; 368 bool m_hasClipParent : 1;
365 369
366 GraphicsLayerPaintingPhase m_paintingPhase; 370 GraphicsLayerPaintingPhase m_paintingPhase;
367 CompositingCoordinatesOrientation m_contentsOrientation; // affects orientat ion of layer contents 371 CompositingCoordinatesOrientation m_contentsOrientation; // affects orientat ion of layer contents
368 372
369 Vector<GraphicsLayer*> m_children; 373 Vector<GraphicsLayer*> m_children;
370 GraphicsLayer* m_parent; 374 GraphicsLayer* m_parent;
371 375
(...skipping 29 matching lines...) Expand all
401 }; 405 };
402 406
403 } // namespace WebCore 407 } // namespace WebCore
404 408
405 #ifndef NDEBUG 409 #ifndef NDEBUG
406 // Outside the WebCore namespace for ease of invocation from gdb. 410 // Outside the WebCore namespace for ease of invocation from gdb.
407 void PLATFORM_EXPORT showGraphicsLayerTree(const WebCore::GraphicsLayer*); 411 void PLATFORM_EXPORT showGraphicsLayerTree(const WebCore::GraphicsLayer*);
408 #endif 412 #endif
409 413
410 #endif // GraphicsLayer_h 414 #endif // GraphicsLayer_h
OLDNEW
« no previous file with comments | « Source/core/rendering/style/RenderStyle.cpp ('k') | Source/platform/graphics/GraphicsLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698