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

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

Issue 1508223005: Client side display item cache flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ScrollbarTheme
Patch Set: Fix unit tests Created 4 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 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 protected: 254 protected:
255 String debugName(cc::Layer*) const; 255 String debugName(cc::Layer*) const;
256 bool shouldFlattenTransform() const { return m_shouldFlattenTransform; } 256 bool shouldFlattenTransform() const { return m_shouldFlattenTransform; }
257 257
258 explicit GraphicsLayer(GraphicsLayerClient*); 258 explicit GraphicsLayer(GraphicsLayerClient*);
259 // for testing 259 // for testing
260 friend class CompositedLayerMappingTest; 260 friend class CompositedLayerMappingTest;
261 friend class PaintControllerPaintTestBase; 261 friend class PaintControllerPaintTestBase;
262 262
263 private: 263 private:
264 DISPLAY_ITEM_CACHE_STATUS_UNCACHEABLE_IMPLEMENTATION
265
264 // Returns true if PaintController::paintArtifact() changed and needs commit . 266 // Returns true if PaintController::paintArtifact() changed and needs commit .
265 bool paintWithoutCommit(const IntRect* interestRect, GraphicsContext::Disabl edMode = GraphicsContext::NothingDisabled); 267 bool paintWithoutCommit(const IntRect* interestRect, GraphicsContext::Disabl edMode = GraphicsContext::NothingDisabled);
266 268
267 // Adds a child without calling updateChildList(), so that adding children 269 // Adds a child without calling updateChildList(), so that adding children
268 // can be batched before updating. 270 // can be batched before updating.
269 void addChildInternal(GraphicsLayer*); 271 void addChildInternal(GraphicsLayer*);
270 272
271 #if ENABLE(ASSERT) 273 #if ENABLE(ASSERT)
272 bool hasAncestor(GraphicsLayer*) const; 274 bool hasAncestor(GraphicsLayer*) const;
273 #endif 275 #endif
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 }; 364 };
363 365
364 } // namespace blink 366 } // namespace blink
365 367
366 #ifndef NDEBUG 368 #ifndef NDEBUG
367 // Outside the blink namespace for ease of invocation from gdb. 369 // Outside the blink namespace for ease of invocation from gdb.
368 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); 370 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*);
369 #endif 371 #endif
370 372
371 #endif // GraphicsLayer_h 373 #endif // GraphicsLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698