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

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: Rebasing... 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 void updateContentsRect(); 288 void updateContentsRect();
288 289
289 void setContentsTo(WebLayer*); 290 void setContentsTo(WebLayer*);
290 void setupContentsLayer(WebLayer*); 291 void setupContentsLayer(WebLayer*);
291 void clearContentsLayerIfUnregistered(); 292 void clearContentsLayerIfUnregistered();
292 WebLayer* contentsLayerIfRegistered(); 293 WebLayer* contentsLayerIfRegistered();
293 294
294 typedef HashMap<int, int> RenderingContextMap; 295 typedef HashMap<int, int> RenderingContextMap;
295 std::unique_ptr<JSONObject> layerTreeAsJSONInternal(LayerTreeFlags, Renderin gContextMap&) const; 296 std::unique_ptr<JSONObject> layerTreeAsJSONInternal(LayerTreeFlags, Renderin gContextMap&) const;
296 297
297 PassRefPtr<SkPicture> capturePicture(); 298 sk_sp<SkPicture> capturePicture();
298 void checkPaintUnderInvalidations(const SkPicture&); 299 void checkPaintUnderInvalidations(const SkPicture&);
299 300
300 GraphicsLayerClient* m_client; 301 GraphicsLayerClient* m_client;
301 302
302 // Offset from the owning layoutObject 303 // Offset from the owning layoutObject
303 DoubleSize m_offsetFromLayoutObject; 304 DoubleSize m_offsetFromLayoutObject;
304 305
305 // Position is relative to the parent GraphicsLayer 306 // Position is relative to the parent GraphicsLayer
306 FloatPoint m_position; 307 FloatPoint m_position;
307 FloatSize m_size; 308 FloatSize m_size;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 }; 372 };
372 373
373 } // namespace blink 374 } // namespace blink
374 375
375 #ifndef NDEBUG 376 #ifndef NDEBUG
376 // Outside the blink namespace for ease of invocation from gdb. 377 // Outside the blink namespace for ease of invocation from gdb.
377 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); 378 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*);
378 #endif 379 #endif
379 380
380 #endif // GraphicsLayer_h 381 #endif // GraphicsLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698