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

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

Issue 2712083002: color: Remove blink pre-conversion code (Closed)
Patch Set: Rebase Created 3 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
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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 // DisplayItemClient methods 274 // DisplayItemClient methods
275 String debugName() const final { return m_client->debugName(this); } 275 String debugName() const final { return m_client->debugName(this); }
276 LayoutRect visualRect() const override; 276 LayoutRect visualRect() const override;
277 277
278 void setHasWillChangeTransformHint(bool); 278 void setHasWillChangeTransformHint(bool);
279 279
280 // See comments in cc::Layer::SetPreferredRasterBounds. 280 // See comments in cc::Layer::SetPreferredRasterBounds.
281 void setPreferredRasterBounds(const IntSize&); 281 void setPreferredRasterBounds(const IntSize&);
282 void clearPreferredRasterBounds(); 282 void clearPreferredRasterBounds();
283 283
284 const ColorBehavior& colorBehavior() const { return m_colorBehavior; }
285
286 protected: 284 protected:
287 String debugName(cc::Layer*) const; 285 String debugName(cc::Layer*) const;
288 bool shouldFlattenTransform() const { return m_shouldFlattenTransform; } 286 bool shouldFlattenTransform() const { return m_shouldFlattenTransform; }
289 287
290 explicit GraphicsLayer(GraphicsLayerClient*); 288 explicit GraphicsLayer(GraphicsLayerClient*);
291 // for testing 289 // for testing
292 friend class CompositedLayerMappingTest; 290 friend class CompositedLayerMappingTest;
293 friend class PaintControllerPaintTestBase; 291 friend class PaintControllerPaintTestBase;
294 292
295 private: 293 private:
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 Vector<LinkHighlight*> m_linkHighlights; 388 Vector<LinkHighlight*> m_linkHighlights;
391 389
392 std::unique_ptr<ContentLayerDelegate> m_contentLayerDelegate; 390 std::unique_ptr<ContentLayerDelegate> m_contentLayerDelegate;
393 391
394 WeakPersistent<ScrollableArea> m_scrollableArea; 392 WeakPersistent<ScrollableArea> m_scrollableArea;
395 GraphicsLayerDebugInfo m_debugInfo; 393 GraphicsLayerDebugInfo m_debugInfo;
396 int m_renderingContext3d; 394 int m_renderingContext3d;
397 395
398 std::unique_ptr<PaintController> m_paintController; 396 std::unique_ptr<PaintController> m_paintController;
399 397
400 ColorBehavior m_colorBehavior;
401
402 IntRect m_previousInterestRect; 398 IntRect m_previousInterestRect;
403 IntSize m_preferredRasterBounds; 399 IntSize m_preferredRasterBounds;
404 bool m_hasPreferredRasterBounds; 400 bool m_hasPreferredRasterBounds;
405 }; 401 };
406 402
407 } // namespace blink 403 } // namespace blink
408 404
409 #ifndef NDEBUG 405 #ifndef NDEBUG
410 // Outside the blink namespace for ease of invocation from gdb. 406 // Outside the blink namespace for ease of invocation from gdb.
411 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); 407 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*);
412 #endif 408 #endif
413 409
414 #endif // GraphicsLayer_h 410 #endif // GraphicsLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698