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

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

Issue 2290903002: Change (Pass)RefPtr<SkXxx> into sk_sp<SkXxx>. (Closed)
Patch Set: Self-review. Created 4 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
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #include "platform/graphics/PaintInvalidationReason.h" 43 #include "platform/graphics/PaintInvalidationReason.h"
44 #include "platform/graphics/filters/FilterOperations.h" 44 #include "platform/graphics/filters/FilterOperations.h"
45 #include "platform/graphics/paint/DisplayItemClient.h" 45 #include "platform/graphics/paint/DisplayItemClient.h"
46 #include "platform/graphics/paint/PaintController.h" 46 #include "platform/graphics/paint/PaintController.h"
47 #include "platform/heap/Handle.h" 47 #include "platform/heap/Handle.h"
48 #include "platform/transforms/TransformationMatrix.h" 48 #include "platform/transforms/TransformationMatrix.h"
49 #include "public/platform/WebContentLayer.h" 49 #include "public/platform/WebContentLayer.h"
50 #include "public/platform/WebImageLayer.h" 50 #include "public/platform/WebImageLayer.h"
51 #include "public/platform/WebLayerScrollClient.h" 51 #include "public/platform/WebLayerScrollClient.h"
52 #include "third_party/skia/include/core/SkFilterQuality.h" 52 #include "third_party/skia/include/core/SkFilterQuality.h"
53 #include "third_party/skia/include/core/SkRefCnt.h"
53 #include "wtf/Vector.h" 54 #include "wtf/Vector.h"
54 #include <memory> 55 #include <memory>
55 56
56 namespace blink { 57 namespace blink {
57 58
58 class FloatRect; 59 class FloatRect;
59 class Image; 60 class Image;
60 class LinkHighlight; 61 class LinkHighlight;
61 class JSONObject; 62 class JSONObject;
62 class PaintController; 63 class PaintController;
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 293
293 void setContentsTo(WebLayer*); 294 void setContentsTo(WebLayer*);
294 void setupContentsLayer(WebLayer*); 295 void setupContentsLayer(WebLayer*);
295 void clearContentsLayerIfUnregistered(); 296 void clearContentsLayerIfUnregistered();
296 WebLayer* contentsLayerIfRegistered(); 297 WebLayer* contentsLayerIfRegistered();
297 298
298 typedef HashMap<int, int> RenderingContextMap; 299 typedef HashMap<int, int> RenderingContextMap;
299 std::unique_ptr<JSONObject> layerTreeAsJSONInternal(LayerTreeFlags, Renderin gContextMap&) const; 300 std::unique_ptr<JSONObject> layerTreeAsJSONInternal(LayerTreeFlags, Renderin gContextMap&) const;
300 301
301 #if DCHECK_IS_ON() 302 #if DCHECK_IS_ON()
302 PassRefPtr<SkPicture> capturePicture(); 303 sk_sp<SkPicture> capturePicture();
303 void checkPaintUnderInvalidations(const SkPicture&); 304 void checkPaintUnderInvalidations(const SkPicture&);
304 #endif 305 #endif
305 306
306 GraphicsLayerClient* m_client; 307 GraphicsLayerClient* m_client;
307 308
308 // Offset from the owning layoutObject 309 // Offset from the owning layoutObject
309 DoubleSize m_offsetFromLayoutObject; 310 DoubleSize m_offsetFromLayoutObject;
310 311
311 // Position is relative to the parent GraphicsLayer 312 // Position is relative to the parent GraphicsLayer
312 FloatPoint m_position; 313 FloatPoint m_position;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 }; 378 };
378 379
379 } // namespace blink 380 } // namespace blink
380 381
381 #ifndef NDEBUG 382 #ifndef NDEBUG
382 // Outside the blink namespace for ease of invocation from gdb. 383 // Outside the blink namespace for ease of invocation from gdb.
383 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); 384 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*);
384 #endif 385 #endif
385 386
386 #endif // GraphicsLayer_h 387 #endif // GraphicsLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698