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

Side by Side Diff: cc/layers/empty_content_layer_client.cc

Issue 1527863002: Serialize PictureLayer properties. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased and added comment Created 4 years, 11 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
« no previous file with comments | « cc/layers/empty_content_layer_client.h ('k') | cc/layers/layer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "cc/layers/empty_content_layer_client.h"
6
7 #include "cc/playback/display_item_list.h"
8 #include "cc/playback/display_item_list_settings.h"
9 #include "ui/gfx/geometry/rect.h"
10
11 namespace cc {
12
13 namespace {
14 base::LazyInstance<EmptyContentLayerClient> g_empty_content_layer_client =
15 LAZY_INSTANCE_INITIALIZER;
16 }
17
18 // static
19 ContentLayerClient* EmptyContentLayerClient::GetInstance() {
20 return g_empty_content_layer_client.Pointer();
21 }
22
23 EmptyContentLayerClient::EmptyContentLayerClient() {}
24
25 EmptyContentLayerClient::~EmptyContentLayerClient() {}
26
27 gfx::Rect EmptyContentLayerClient::PaintableRegion() {
28 return gfx::Rect();
29 }
30
31 scoped_refptr<DisplayItemList>
32 EmptyContentLayerClient::PaintContentsToDisplayList(
33 PaintingControlSetting painting_status) {
34 return DisplayItemList::Create(gfx::Rect(), DisplayItemListSettings());
35 }
36
37 bool EmptyContentLayerClient::FillsBoundsCompletely() const {
38 return false;
39 }
40
41 size_t EmptyContentLayerClient::GetApproximateUnsharedMemoryUsage() const {
42 return 0u;
43 }
44
45 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/empty_content_layer_client.h ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698