OSDN Git Service

1ループあたりの実行回数を指定できるようにした
[d2dbench/d2dbench.git] / D2DBench / Method4.cs
index ddce4e0..9c78354 100644 (file)
@@ -17,8 +17,9 @@ namespace D2DBench
 {\r
     class Method4 : IBench\r
     {\r
-        public int fillAreaSize { get { return bmpSize.Width * bmpSize.Height * Form1.ExecuteCountPerOneset; } }\r
+        public int fillAreaSize { get { return bmpSize.Width * bmpSize.Height * this.loopCount; } }\r
         public string methodName { get { return "D2DBitBlt"; } }\r
+        public int loopCount { get; set; }\r
 \r
         D2D1.Factory Factory2D;\r
         DW.Factory FactoryDWrite;\r
@@ -53,7 +54,7 @@ namespace D2DBench
         public void Exec()\r
         {\r
             render.BeginDraw();\r
-            for (int i = 0; i < Form1.ExecuteCountPerOneset; i++)\r
+            for (int i = 0; i < this.loopCount; i++)\r
             {\r
                 SharpDX.RectangleF rect = new SharpDX.RectangleF();\r
                 rect.Left = rnd.Next(ClientSize.Width);\r