diff --git a/src/app/main/main.directives.js b/src/app/main/main.directives.js index e23eb63..1d088f6 100644 --- a/src/app/main/main.directives.js +++ b/src/app/main/main.directives.js @@ -10,27 +10,27 @@ angular.module('hybridApps') fibonacci: '=', delay: '=' }, - link: function($scope, $elm, $attr) { + link: function($scope, $element, $attr) { - var render = $elm; - var object = $('.object'); + var render = $element; + var object = $element.children()[0]; $scope.r_w = render[0].clientWidth; $scope.r_h = render[0].clientHeight; - $scope.o_w = object[0].clientWidth; - $scope.o_h = object[0].clientHeight; + $scope.o_w = object.clientWidth; + $scope.o_h = object.clientHeight; window.onresize = function(event) { $scope.$apply(function(){ - var render = $elm; - var object = $('.object'); + var render = $element; + var object = $element.children()[0]; $scope.r_w = render[0].clientWidth; $scope.r_h = render[0].clientHeight; - $scope.o_w = object[0].clientWidth; - $scope.o_h = object[0].clientHeight; + $scope.o_w = object.clientWidth; + $scope.o_h = object.clientHeight; }) } diff --git a/src/app/main/slide_31.html b/src/app/main/slide_31.html index 269983b..f7126ba 100644 --- a/src/app/main/slide_31.html +++ b/src/app/main/slide_31.html @@ -1,8 +1,9 @@
-
-

The Hardware Path: GPU

+
+

The Hardware Path: GPU

+ Android Chromium Rendering Pipeline