forked from Pissandshittium/pissandshittium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Size reduction from moving const char arrays out of header
Change from initial\chrome.dll to out\release\chrome.dll .text: 192 bytes change .rdata: -352 bytes change .reloc: 28 bytes change Total change: -132 bytes Change from initial\chrome_child.dll to out\release\chrome_child.dll .text: -512 bytes change .rdata: -384 bytes change .reloc: -320 bytes change Total change: -1216 bytes This isn't particularly worthwhile for the size savings, but it seems worthwhile just because const non-integral variable definitions in header files are not ideal. BUG=630755 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2523063002 Cr-Commit-Position: refs/heads/master@{#436499}
- Loading branch information
1 parent
6d9d59c
commit c534450
Showing
3 changed files
with
53 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Copyright 2016 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "cc/debug/devtools_instrumentation.h" | ||
|
||
namespace cc { | ||
namespace devtools_instrumentation { | ||
|
||
namespace internal { | ||
extern const char kCategory[] = TRACE_DISABLED_BY_DEFAULT("devtools.timeline"); | ||
extern const char kCategoryFrame[] = | ||
TRACE_DISABLED_BY_DEFAULT("devtools.timeline.frame"); | ||
extern const char kData[] = "data"; | ||
extern const char kFrameId[] = "frameId"; | ||
extern const char kLayerId[] = "layerId"; | ||
extern const char kLayerTreeId[] = "layerTreeId"; | ||
extern const char kPixelRefId[] = "pixelRefId"; | ||
|
||
extern const char kImageDecodeTask[] = "ImageDecodeTask"; | ||
extern const char kBeginFrame[] = "BeginFrame"; | ||
extern const char kNeedsBeginFrameChanged[] = "NeedsBeginFrameChanged"; | ||
extern const char kActivateLayerTree[] = "ActivateLayerTree"; | ||
extern const char kRequestMainThreadFrame[] = "RequestMainThreadFrame"; | ||
extern const char kBeginMainThreadFrame[] = "BeginMainThreadFrame"; | ||
extern const char kDrawFrame[] = "DrawFrame"; | ||
extern const char kCompositeLayers[] = "CompositeLayers"; | ||
} // namespace internal | ||
|
||
extern const char kPaintSetup[] = "PaintSetup"; | ||
extern const char kUpdateLayer[] = "UpdateLayer"; | ||
|
||
} // namespace devtools_instrumentation | ||
} // namespace cc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters