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

Side by Side Diff: tools/cc-frame-viewer/src/quad_view_viewport.js

Issue 12287014: [cc-frame-viewer] Show layers and levels of detail (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « tools/cc-frame-viewer/src/quad_view.js ('k') | tools/cc-frame-viewer/src/tests.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 */ 4 */
5 'use strict'; 5 'use strict';
6 6
7 base.require('base.range'); 7 base.require('base.range');
8 base.require('ui.event_target'); 8 base.require('ui.event_target');
9 9
10 base.exportTo('ccfv', function() { 10 base.exportTo('ccfv', function() {
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 desired_device_line_width) { 124 desired_device_line_width) {
125 return desired_device_line_width / this.worldPixelsPerDevicePixel_; 125 return desired_device_line_width / this.worldPixelsPerDevicePixel_;
126 }, 126 },
127 127
128 applyTransformToContext: function(ctx) { 128 applyTransformToContext: function(ctx) {
129 var transform = this.transformWorldToDevicePixels_; 129 var transform = this.transformWorldToDevicePixels_;
130 ctx.transform(transform[0], transform[1], transform[2], 130 ctx.transform(transform[0], transform[1], transform[2],
131 transform[3], transform[4], transform[5]); 131 transform[3], transform[4], transform[5]);
132 }, 132 },
133 133
134 forceRedrawAll: function() {
135 this.didChange_();
136 },
137
134 didChange_: function() { 138 didChange_: function() {
135 base.dispatchSimpleEvent(this, 'change', false, false); 139 base.dispatchSimpleEvent(this, 'change', false, false);
136 } 140 }
137 }; 141 };
138 142
139 return { 143 return {
140 QuadViewViewport: QuadViewViewport, 144 QuadViewViewport: QuadViewViewport,
141 } 145 }
142 }); 146 });
143 147
OLDNEW
« no previous file with comments | « tools/cc-frame-viewer/src/quad_view.js ('k') | tools/cc-frame-viewer/src/tests.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698